Use of CustomEvent constructor #77
Comments
It's polyfilled by the Polyfill Service, CustomEvent needs to be added to the origami.json in the required browserFeatures array |
I still think the documentation should explicitly state that |
the documentation for required APIs in an Origami module is in the origami.json. CTMs are the same for all modules, many of them use CustomEvent, and all of these require the polyfill service to serve those polyfill for browsers that need them. If you think the spec should be different with regard to the topic, it would be great to discuss it in the Origami meeting tomorrow :) |
I'm not in the office on Thursdays. I didn't realise that products were required to serve polyfills from the On 14 October 2015 at 12:40, Alberto Elias notifications@github.com wrote:
This email was sent by a company owned by Pearson plc, registered office at |
Well, like with everything, if a dependency breaks, then some things won't This email was sent by a company owned by Pearson plc, registered office at |
Also worth adding that it's already in ft.com and in Next where o-tracking This email was sent by a company owned by Pearson plc, registered office at |
The o-tracking documentation suggests to use the cuts-the-mustard test from the Origami spec, i.e:
'querySelector' in document && 'localStorage' in window && 'addEventListener' in window
. However the o-tracking code base makes use of theCustomEvent
constructor, which isn't supported in IE <= 11. This means IE 9, 10 and 11 would pass the cuts-the-mustard test but still be unable to execute the o-tracking code.The text was updated successfully, but these errors were encountered: