Re: CustomElement: Type extension on custom tag

2014-10-17 Thread Joshua Peek
Ah, interesting. If custom element interfaces are treated differently, it seems like this may negatively affect the HTML as Custom Elements work (https://github.com/dglazkov/html-as-custom-elements). Type extensions may or may not work depending on the element being truly native or not. On Thu,

CustomElement: Type extension on custom tag

2014-10-16 Thread Joshua Peek
Is it legal to register a type extension on top of an existing custom tag? x-button is=x-submit-button/x-button var ButtonPrototype = Object.create(HTMLElement.prototype) document.registerElement(x-button, {prototype: ButtonPrototype}) var SubmitButtonPrototype =

Re: CustomElement: Type extension on custom tag

2014-10-16 Thread Dominic Cooney
Hi Joshua, I implemented Custom Elements in Chrome. In the definition construction algorithm http://www.w3.org/TR/custom-elements/#dfn-definition-construction-algorithm, step 8.2, it says: If BASE does not exist or is an interface for a custom element, set ERROR to InvalidName and stop. In