Re: Custom elements ES6/ES5 syntax compromise, was: document.register and ES6

On Wed, Feb 20, 2013 at 9:58 AM, Scott Miles <> wrote:
> Since many of these cases are 'semantic' elements, whose only raison d'Ítre
> (afaik) is having a particular localName, I'm not sure how we get around
> this without being able to specify an 'extends' option.
> document.register('fancy-header', {
>   prototype: FancyHeaderPrototype,
>   extends: 'header'
> ...

Can you help me understand why we need to do this? Since there is no
HTMLHeaderPrototype, we will never have an issue with forming the
wrong prototype chain. So <header is="fancy-header"> should work just
as well as <section is="fancy-header">, and so would <fancy-header>.


Received on Wednesday, 20 February 2013 18:02:34 UTC