Re: Custom Elements: is=""

On Thu, Jul 2, 2015 at 3:59 PM, Ryosuke Niwa <rniwa@apple.com> wrote:

>
> > On Jun 13, 2015, at 4:49 PM, Léonie Watson <LWatson@PacielloGroup.com>
> wrote:
> >
> > From: Bruce Lawson [mailto:brucel@opera.com]
> > Sent: 13 June 2015 16:34
> >
> > 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.
> >
> > Of course! I should have thought of that.
>
> That's not entirely true.  If the implementation of my-button, let us call
> it MyButtonElement had the prototype that extends HTMLButtonElement, then
> the browser can set role=button just fine.


Excuse the intrusion, but I'm slightly confused by at least one point.
Maybe you could help me clear it up. It's related to what you term "the
implementation of my-button". What is that? Is it something defined by the
web author (how?) or the user agent?

Sincerely,

Dominic

Received on Friday, 10 July 2015 04:00:51 UTC