This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15096 - 1.function supports_html5_storage() { 2. try { 3. return 'localStorage' in window && window['localStorage'] !== null; 4. } catch (e) { 5. return false; 6. } 7.}
Summary: 1.function supports_html5_storage() { 2. try { 3. return 'loc...
Status: RESOLVED INVALID
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Web Storage (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: public-webapps-bugzilla
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-07 09:23 UTC by contributor
Modified: 2011-12-07 10:20 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2011-12-07 09:23:19 UTC
Specification: http://dev.w3.org/html5/webstorage/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
1.function supports_html5_storage() {	
2.    try {   
3.	  return 'localStorage' in window && window['localStorage'] !== null; 
 
4.    } catch (e) {   
5.	  return false;   
6.    }   
7.}  


Posted from: 112.65.138.138
User agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)