Re: document.register and ES6

On 2/8/13 5:11 PM, Erik Arvidsson wrote:
> 1. We cannot really extends anything else but HTMLElement/HTMLUnknownElement.

Note that this restriction is not limited to polyfills.  Extending other 
HTMLElements with a custom tagname seems ... highly undesirable to me. 
In particular, if you have an element whose localName is not "button" 
but which is an HTMLButtonElement then some aspects of its buttonness 
will work in some UAs and other will not, and the set will depend on the 
UA and on the extensions installed and so forth.

If we need to subclass built-in non-generic HTML elements we need to do 
so with nodes which have the right localName.

-Boris

Received on Friday, 8 February 2013 17:25:33 UTC