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: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: addeventlistener quirks Date: Sun, 25 Jan 2015 02:28:41 +0100 Organization: PointedEars Software (PES) Lines: 44 Message-ID: <1651063.Tygl80MvDv@PointedEars.de> References: Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1422149361 21388 eJwFwQkBACAIA8BKIBtIHXn6R/CO5uoVcDq4XKVhzvDCNUV2CpbIU0ie9pA3GLzLmEjp/v5aEFU= (25 Jan 2015 01:29:21 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sun, 25 Jan 2015 01:29:21 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwFwQkBwDAIA0BL5QlQOQsF/xJ2BwuJTg+EY7Ha3+Lx4OZ71snGMMuloKY70kEQYu28w8nZ2lel99Ch/AFwexYs Cancel-Lock: sha1:RNnl/XbYbevT1qvfBf84m8KSNxI= X-NNTP-Posting-Host: eJwFwQkBACAIBLBK8h7EQYT+EdxMnLyhbq62tuBN7KL7zjjFaa8gntBXUlegDwhInEwilg8oUBC2 Xref: csiph.com comp.lang.javascript:26696 Christoph M. Becker wrote: > Andrew Poulos wrote: >> The code I've been working on uses addEventListener. The elearning >> course I've been building is written in valid HTML5. The client's >> Learning Management System (LMS) wraps my course's window in a window of >> its own. The LMS seems to "force" IE to render the course in quirks >> mode. In quirks mode IE9 gives an error that addEventListener is >> unsupported. > > 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. One should never rely on that a document only renders correctly when in “Quirks mode”. The light at the end of the tunnel is that there are rumors that Microsoft is going to replace Internet Explorer in favor of a lightweight rewrite codenamed “Spartan”. It remains to be seen if this comes true and if the result will be in any way more pleasing than what we have today: This fits well with official information that support for IE 8 will be discontinued, and for IE 9 and 10 reduced, starting next year: -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.