WebReflection / hyperHTML-Element

An extensible class to define hyperHTML based Custom Elements.
ISC License
202 stars 25 forks source link

es5-test: Uncaught TypeError: Failed to construct 'HTMLAnchorElement' #56

Closed AndyOGo closed 5 years ago

AndyOGo commented 5 years ago

I just opened the ES5 test page in Chrome and Firefox and got:

Chrome:

Uncaught TypeError: Failed to construct 'HTMLAnchorElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function.
    at new Intermediate (es5.js?_=0.4022547931080971:2271)
    at new MyLink (test.es5.js?_=0.9770479712178417:52)

Firefox:

TypeError: Constructor HTMLAnchorElement requires 'new' es5.js:2271:55
    Intermediate https://webreflection.github.io/hyperHTML-Element/es5.js?_=0.04575158785649547:2271
    MyLink https://webreflection.github.io/hyperHTML-Element/test/test.es5.js?_=0.6995535751188614:52
WebReflection commented 5 years ago

that page is for IE and friends, you should try this one instead: https://webreflection.github.io/hyperHTML-Element/test/