Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #26698

Re: addeventlistener quirks

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" <cmbecker69@arcor.de>
Newsgroups comp.lang.javascript
Subject Re: addeventlistener quirks
Date Sun, 25 Jan 2015 15:16:58 +0100
Organization solani.org
Lines 37
Message-ID <ma2tsp$uei$1@solani.org> (permalink)
References <AdqdnU0rnZXFpV7JnZ2dnUVZ8vudnZ2d@westnet.com.au> <ma0ku5$bgj$1@solani.org> <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

Show key headers only | View raw


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, 
> 
> <http://ie.microsoft.com/testdrive/ieblog/2011/Mar/24_IE9sDocumentModesandJavaScript_1.png>
> 
> “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] <https://msdn.microsoft.com/en-us/library/cc288325(v=vs.85).aspx>

-- 
Christoph M. Becker

Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

addeventlistener quirks Andrew Poulos <ap_prog@hotmail.com> - 2015-01-24 17:08 +1100
  Re: addeventlistener quirks Andrew Poulos <ap_prog@hotmail.com> - 2015-01-24 17:14 +1100
  Re: addeventlistener quirks "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-01-24 18:32 +0100
    Re: addeventlistener quirks Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-25 02:28 +0100
      Re: addeventlistener quirks "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-01-25 15:16 +0100

csiph-web