Re: document.register and ES6

On Fri, Feb 8, 2013 at 9:25 AM, Boris Zbarsky <> wrote:

> 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.
In our recent debates, the general agreement is that we would support this

<button is="my-button">

Doesn't that allow us to have proper localName?

> -Boris

Received on Friday, 8 February 2013 17:50:17 UTC