Web-Components-Polyfill
Web-Components-Polyfill copied to clipboard
IMPORTANT: Use http://polymer-project.org/ instead. Their stuff is better.
I'm looking into implementing a demo of how radically web components can change the way we look at what "a webpage" means, and was wondering how up to date this...
Here is an example: https://github.com/nimbupani/webcomponents-demos/blob/master/customfilters/customfilters-component.html#L25 Works when I use it not as a component though. I thought they should all work :| Transitions work for some reason.
Also, the spec is very vague on how templates within custom elements are supposed to work when extended? I attempted this: ``` html ٩(͡๏̯͡๏)۶
The polyfill doesn't implement linking to an external stylesheet:
Currently, foo() is not seen in global scope (index.html that uses x-element). Good! But bar() is from app.js. Not x-element.html contains . app.js: function bar() {} x-element.html: ... function foo()...
Quite a bit of the custom elements explanation focuses on extending the select element, but trying to do this using the polyfill fails. The call to `var shadowRoot = new...
line 49 throws "TypeError: Cannot call method 'call' of undefined". For example: ... .... var d = new AwesoneDiv();