Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #26693
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: addeventlistener quirks |
| Date | 2015-01-24 18:32 +0100 |
| Organization | solani.org |
| Message-ID | <ma0ku5$bgj$1@solani.org> (permalink) |
| References | <AdqdnU0rnZXFpV7JnZ2dnUVZ8vudnZ2d@westnet.com.au> |
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, as the following
console session for a document without doctype demonstrates:
> document.compatMode
=> "CSS1Compat"
> window.addEventListener
=> function addEventListener() { [native code] }
> document.body.addEventListener
=> function addEventListener() { [native code] }
Are you sure there is no X-UA-Compatible in place (either HTTP header or
meta element)?
What do you mean with "wraps my course's window in a window of its own"?
An Iframe?
--
Christoph M. Becker
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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