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.}
1.function supports_html5_storage() { 2. try { 3. return 'loc...
Status: RESOLVED INVALID
Product: WebAppsWG
Classification: Unclassified
Component: Web Storage (editor: Ian Hickson)
unspecified
Other other
: P3 normal
: ---
Assigned To: Ian 'Hixie' Hickson
public-webapps-bugzilla
http://www.whatwg.org/specs/web-apps/...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-07 09:23 UTC by contributor
Modified: 2011-12-07 10:20 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)