Re: Custom form elements (was Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax))

2013-12-15 Thread Dominic Cooney
On Fri, Dec 13, 2013 at 5:59 PM, Maciej Stachowiak wrote: > > On Dec 7, 2013, at 4:38 PM, Dominic Cooney wrote: > > >> > Built-in HTML elements have lots of hooks to modify their behaviour (for > example, HTMLVideoElement's autoplay attribute.) The analogy is extending a > Java class which has p

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-13 Thread Maciej Stachowiak
On Dec 10, 2013, at 12:24 PM, Elliott Sprehn wrote: > > On Tue, Dec 10, 2013 at 8:00 AM, Anne van Kesteren wrote: > On Tue, Dec 10, 2013 at 3:54 PM, Boris Zbarsky wrote: > > On 12/10/13 10:34 AM, Anne van Kesteren wrote: > >> E.g. the 's close() method won't work as defined > >> right now on

Custom form elements (was Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax))

2013-12-13 Thread Maciej Stachowiak
On Dec 7, 2013, at 4:38 PM, Dominic Cooney wrote: > > > Built-in HTML elements have lots of hooks to modify their behaviour (for > example, HTMLVideoElement's autoplay attribute.) The analogy is extending a > Java class which has private and public final members, but no protected or > publi

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-10 Thread Ryosuke Niwa
On Dec 10, 2013, at 9:20 AM, Erik Arvidsson wrote: > On Tue, Dec 10, 2013 at 11:15 AM, Anne van Kesteren wrote: > On Tue, Dec 10, 2013 at 4:10 PM, Domenic Denicola > wrote: > > Nevertheless, it would be unfortunate to use the in-progress nature of > > making the web platform more JavaScript-fri

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-10 Thread Elliott Sprehn
On Tue, Dec 10, 2013 at 8:00 AM, Anne van Kesteren wrote: > On Tue, Dec 10, 2013 at 3:54 PM, Boris Zbarsky wrote: > > On 12/10/13 10:34 AM, Anne van Kesteren wrote: > >> E.g. the 's close() method won't work as defined > >> right now on a subclass of HTMLDialogElement. > > > > Why not? > > > > I

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-10 Thread Erik Arvidsson
On Tue, Dec 10, 2013 at 11:15 AM, Anne van Kesteren wrote: > On Tue, Dec 10, 2013 at 4:10 PM, Domenic Denicola > wrote: > > Nevertheless, it would be unfortunate to use the in-progress nature of > making the web platform more JavaScript-friendly as an argument for making > it more JavaScript host

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-10 Thread Anne van Kesteren
On Tue, Dec 10, 2013 at 4:10 PM, Domenic Denicola wrote: > Nevertheless, it would be unfortunate to use the in-progress nature of making > the web platform more JavaScript-friendly as an argument for making it more > JavaScript hostile (by prohibiting element subclassing). Well, the question is

RE: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-10 Thread Domenic Denicola
From: a...@google.com on behalf of Erik Arvidsson > On Tue, Dec 10, 2013 at 10:34 AM, Anne van Kesteren wrote: > >> I think Ryosuke has a point here though. ES6 brings subclassing to the >> platform, but are not even close to reimagining the platform in terms of >> that. > > ES6 does not br

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-10 Thread Anne van Kesteren
On Tue, Dec 10, 2013 at 3:54 PM, Boris Zbarsky wrote: > On 12/10/13 10:34 AM, Anne van Kesteren wrote: >> E.g. the 's close() method won't work as defined >> right now on a subclass of HTMLDialogElement. > > Why not? > > I assumed that actual ES6 subclassing, complete with invoking the right > sup

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-10 Thread Anne van Kesteren
On Tue, Dec 10, 2013 at 3:53 PM, Erik Arvidsson wrote: >> I think Ryosuke has a point here though. ES6 brings subclassing to the >> platform, but are not even close to reimagining the platform in terms >> of that. > > ES6 does not bring sub classing to the table. It has been there all along > (sin

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-10 Thread Boris Zbarsky
On 12/10/13 10:34 AM, Anne van Kesteren wrote: E.g. the 's close() method won't work as defined right now on a subclass of HTMLDialogElement. Why not? I assumed that actual ES6 subclassing, complete with invoking the right superclass @@create, would in fact produce an object for which this w

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-10 Thread Erik Arvidsson
On Tue, Dec 10, 2013 at 10:34 AM, Anne van Kesteren wrote: > I think Ryosuke has a point here though. ES6 brings subclassing to the > platform, but are not even close to reimagining the platform in terms > of that. ES6 does not bring sub classing to the table. It has been there all along (since

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-10 Thread Anne van Kesteren
On Mon, Dec 9, 2013 at 12:42 AM, Dominic Cooney wrote: > You assert that inheriting from built-in elements does not make any sense. > You seem to base this on the claim that hooks (the example being form > submission protocol hooks) are not well defined. Whether hooks are well > defined or not doe

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-09 Thread Ryosuke Niwa
On Dec 9, 2013, at 8:45 PM, "Tab Atkins Jr." wrote: > On Tue, Dec 10, 2013 at 3:33 PM, Ryosuke Niwa wrote: >> In fact, why do we even bother to add any new API at all for web components >> if our primary target was framework authors. Ember.js, Angular JS, etc... >> all work great already because

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-09 Thread Tab Atkins Jr.
On Tue, Dec 10, 2013 at 3:33 PM, Ryosuke Niwa wrote: > In fact, why do we even bother to add any new API at all for web components > if our primary target was framework authors. Ember.js, Angular JS, etc... > all work great already because they add an abstraction layer on top of DOM. > As current

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-09 Thread Ryosuke Niwa
On Dec 9, 2013, at 5:12 PM, Dominic Cooney wrote: > On Tue, Dec 10, 2013 at 6:38 AM, Ryosuke Niwa wrote: > On Dec 8, 2013, at 4:42 PM, Dominic Cooney wrote: >> On Sun, Dec 8, 2013 at 7:25 PM, Ryosuke Niwa wrote: >> On Dec 7, 2013, at 4:38 PM, Dominic Cooney wrote: >>> On Fri, Dec 6, 2013 at 3:

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-09 Thread Elliott Sprehn
On Mon, Dec 9, 2013 at 5:50 PM, Brendan Eich wrote: > Ryosuke Niwa wrote: > >> As for the social "endorse" button, I've never seen a popular SNS share >> buttons implemented using HTML button elements; most of them add their own >> DOM to add icons, etc... >> > > Right you are. And there's a deepe

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-09 Thread Brendan Eich
Ryosuke Niwa wrote: As for the social "endorse" button, I've never seen a popular SNS share buttons implemented using HTML button elements; most of them add their own DOM to add icons, etc... Right you are. And there's a deeper reason why "like" ("endorse", LOL) buttons use iframes: the abili

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-09 Thread Dominic Cooney
On Tue, Dec 10, 2013 at 6:38 AM, Ryosuke Niwa wrote: > On Dec 8, 2013, at 4:42 PM, Dominic Cooney wrote: > > On Sun, Dec 8, 2013 at 7:25 PM, Ryosuke Niwa wrote: >> >> On Dec 7, 2013, at 4:38 PM, Dominic Cooney wrote: >> >> On Fri, Dec 6, 2013 at 3:34 PM, Ryosuke Niwa wrote: >> >>> On Dec 5, 2

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-09 Thread Ryosuke Niwa
On Dec 8, 2013, at 4:42 PM, Dominic Cooney wrote: > On Sun, Dec 8, 2013 at 7:25 PM, Ryosuke Niwa wrote: > On Dec 7, 2013, at 4:38 PM, Dominic Cooney wrote: >> On Fri, Dec 6, 2013 at 3:34 PM, Ryosuke Niwa wrote: >> On Dec 5, 2013, at 10:09 PM, Hajime Morrita wrote: >> > On inheritance around HT

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-08 Thread Dominic Cooney
On Sun, Dec 8, 2013 at 7:25 PM, Ryosuke Niwa wrote: > > On Dec 7, 2013, at 4:38 PM, Dominic Cooney wrote: > > On Fri, Dec 6, 2013 at 3:34 PM, Ryosuke Niwa wrote: > >> On Dec 5, 2013, at 10:09 PM, Hajime Morrita wrote: >> > On inheritance around HTMLElement family, there seems to be a confusion

RE: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-08 Thread François REMY
± > If someone were to make proposals about adding more hooks to the web ± platform to enable more subtyping use cases (for example, a protocol for ± participating in form submission) I would look forward to working with them ± on those proposals. ± ± I am very interested in such proposals and I

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-08 Thread Ryosuke Niwa
> On Dec 7, 2013, at 4:38 PM, Dominic Cooney wrote: > >> On Fri, Dec 6, 2013 at 3:34 PM, Ryosuke Niwa wrote: >> On Dec 5, 2013, at 10:09 PM, Hajime Morrita wrote: >> > On inheritance around HTMLElement family, there seems to be a confusion >> > between interface side inheritance and implement

RE: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-07 Thread Domenic Denicola
From: Dominic Cooney [mailto:domin...@google.com] > If someone were to make proposals about adding more hooks to the web platform > to enable more subtyping use cases (for example, a protocol for participating > in form submission) I would look forward to working with them on those > proposals

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-07 Thread Dominic Cooney
On Fri, Dec 6, 2013 at 3:34 PM, Ryosuke Niwa wrote: > On Dec 5, 2013, at 10:09 PM, Hajime Morrita wrote: > > On inheritance around HTMLElement family, there seems to be a confusion > between interface side inheritance and implementation side inheritance. > > Right. Differentiating the two is ve

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-05 Thread Hajime Morrita
I agree that it isn't trivial to inherit from a built-in element as if it is an author-defined element. My point was that mentioning relationship between HTMLElement and built-in elements on WebIDL doesn't matter in this discussion and we should focus on other reasoning. On Fri, Dec 6, 2013 at 3:

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-05 Thread Ryosuke Niwa
On Dec 5, 2013, at 10:09 PM, Hajime Morrita wrote: > On inheritance around HTMLElement family, there seems to be a confusion > between interface side inheritance and implementation side inheritance. Right. Differentiating the two is very important. > For Custom Elements, the inheritance is not

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-05 Thread Hajime Morrita
On inheritance around HTMLElement family, there seems to be a confusion between interface side inheritance and implementation side inheritance. In WebIDL, interfaces of HTML elements have inherited only from HTMLElement interface. This is fine just because it cares only about interface (API signat

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-05 Thread Ryosuke Niwa
On Dec 5, 2013, at 9:30 PM, Dimitri Glazkov wrote: > On Thu, Dec 5, 2013 at 8:50 PM, Ryosuke Niwa wrote: > On Dec 5, 2013, at 8:30 PM, Dimitri Glazkov wrote: >> On Thu, Dec 5, 2013 at 7:55 PM, Ryosuke Niwa wrote: >> On Nov 11, 2013, at 4:12 PM, Dimitri Glazkov wrote: >> > 3) The approach pollu

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-05 Thread Dimitri Glazkov
On Thu, Dec 5, 2013 at 8:50 PM, Ryosuke Niwa wrote: > Thanks. > > On Dec 5, 2013, at 8:30 PM, Dimitri Glazkov wrote: > > On Thu, Dec 5, 2013 at 7:55 PM, Ryosuke Niwa wrote: > >> On Nov 11, 2013, at 4:12 PM, Dimitri Glazkov >> wrote: >> > 3) The approach pollutes global name space with construc

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-05 Thread Ryosuke Niwa
Thanks. On Dec 5, 2013, at 8:30 PM, Dimitri Glazkov wrote: > On Thu, Dec 5, 2013 at 7:55 PM, Ryosuke Niwa wrote: > On Nov 11, 2013, at 4:12 PM, Dimitri Glazkov wrote: > > 3) The approach pollutes global name space with constructors. This had been > > voiced many times as unacceptable by develo

Re: [webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-05 Thread Dimitri Glazkov
On Thu, Dec 5, 2013 at 7:55 PM, Ryosuke Niwa wrote: > On Nov 11, 2013, at 4:12 PM, Dimitri Glazkov > wrote: > > 3) The approach pollutes global name space with constructors. This had > been voiced many times as unacceptable by developers. > > > > 4) How does build a custom element that uses as

[webcomponents] Inheritance in Custom Elements (Was Proposal for Cross Origin Use Case and Declarative Syntax)

2013-12-05 Thread Ryosuke Niwa
On Nov 11, 2013, at 4:12 PM, Dimitri Glazkov wrote: > 3) The approach pollutes global name space with constructors. This had been > voiced many times as unacceptable by developers. > > 4) How does build a custom element that uses as its base element? > What about or any other HTML element? >