Re: Custom Elements: is=""

On 13 June 2015 at 15:30, LĂ©onie Watson <lwatson@paciellogroup.com> wrote:
> why not use the extends= syntax you mentioned?
>
> <my-button extends="button" attributes>Push</my-button>

because browsers that don't know about web components wouldn't pay any
attention to <my-button>, and render "Push" as plain text.

 Browsers that don't know about web components will fall back to
<button> with <button
this-is-made-much-more-marvellous-by="my-button"> (or whatever)

b

Received on Saturday, 13 June 2015 15:34:02 UTC