📜 ⬆️ ⬇️

How Internet Explorer passes HTML5 tests

Just now, on the Ribbon, I’ve skipped a review on the support of modern browsers of the HTML 5 standard in which it was reported that IE 8 (and exactly like 9) is gaining “whole” 19 points out of a possible 160. Of these, 4 points for the ability to recognize <! Doctype html> and switch to the appropriate mode, 8 points for supporting local storage and 7 points for other trifles.

I already wanted to say hurray and save my recently written PHP class for working with session data, but trying to use the so-called local storage support in IE 8 led to the following interesting result:

'localStorage' in window => true
window.localStorage => undefined
window ['localStorage'] => undefined

The first way is determined by the support of IE local storage on the site http://www.html5test.com/ , to which the authors of the review on the Ribbon referred.
')
 t2: function () {
   var r = 'localStorage' in window;
   this.section.setItem ('Local Storage', r)
   return r?  4: 0;
 }


And nothing has changed.

Source: https://habr.com/ru/post/91415/


All Articles