Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: addeventlistener quirks Date: Sun, 25 Jan 2015 15:16:58 +0100 Organization: solani.org Lines: 37 Message-ID: References: <1651063.Tygl80MvDv@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: solani.org 1422195417 31186 eJwFwQEBACAIA7BKohwhjhffP4IbVljc7YFwCErWsRJI2SHe0Kj2famdBN/wbGMtn6qe2R80eRHM (25 Jan 2015 14:16:57 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sun, 25 Jan 2015 14:16:57 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 X-User-ID: eJwFwYEBACAEBMCVwr80TsL+I3RHc/G34XRwOC0RuU5UJ/M1tBq77hB2Icy1PKxKlTgSWh8oWhD+ In-Reply-To: <1651063.Tygl80MvDv@PointedEars.de> Cancel-Lock: sha1:9tABMU3KNy5/liaHz2qrsGgkdeo= X-NNTP-Posting-Host: eJwNysERACAIA7CVRGzBcUBh/xH08g2UwmOL4EJ/aOPm8czKqTFKLjD/8OvI27TQEVXZu1PqASTyEfs= Xref: csiph.com comp.lang.javascript:26698 Thomas 'PointedEars' Lahn wrote: > Christoph M. Becker wrote: > >> It seems that IE 11 in IE 9 emulation mode does define the >> `addEventListener` property of window and elements, > > > > “Quirks mode” is not the same as “IE 9 standards” Document Mode, and > certainly IE 11 in “IE 9 standards” Document Mode is not the same as IE 9 in > “Quirks mode”. > > IE 9 in “Quirks mode” is lower in regard to standards compliance than “IE 7 > standards” Document Mode. addEventListener() certainly is not available > there. Of course, you're right. I was confused about the value of document.compatMode, which I thought would be "CSS1Compat" for quirks mode, while actually it is "BackCompat". However, as I've just learned[1]: | As of Internet Explorer 10, quirks mode behaves differently than it | did in earlier versions of the browser. In Windows Internet Explorer | 9 and earlier versions, quirks mode restricted the webpage to the | features supported by Microsoft Internet Explorer 5.5. In Internet | Explorer 10, quirks mode conforms to the differences specified in the | HTML5 specification. > This fits well with official information that support for IE 8 will be > discontinued, and for IE 9 and 10 reduced, starting next year: I'm afraid that IE 8 will stay in widespread use as long as Windows XP does. [1] -- Christoph M. Becker