Re: Why is querySelector much slower?

2015-04-29 Thread Boris Zbarsky
On 4/29/15 12:23 AM, Glen Huang wrote: because of the proxy machinery involved on the JS engine side Do you mean the cost introduced by passing a C++ object into ecmascript world? No, it's the cost introduced by needing custom property behavior for integer-named properties on lists (and in p

FYI: First Public Working Draft of Web Payments Use Cases

2015-04-29 Thread Ian Jacobs
Dear Web Apps Working Group, On 16 April 2015, the W3C Web Payments Interest Group [1] published: Web Payments Use Cases 1.0 http://www.w3.org/TR/web-payments-use-cases/ This document is a prioritized list of Web payments use cases. Guided by these use cases, the W3C Web Payments Interest Gr

Re: Nice version Re: Minutes of Shadow DOM meeting

2015-04-29 Thread Dimitri Glazkov
Will do. :DG< On Sun, Apr 26, 2015 at 2:08 AM, wrote: > Attached here is a clean version, which will be archived. > > Note that there was a lot of sidechat in IRC it is unclear how much of > that everyone in the room was aware of. I hope the minutes are a pretty > accurate record now, but if pe

Re: Imperative API for Node Distribution in Shadow DOM (Revisited)

2015-04-29 Thread Dimitri Glazkov
On Mon, Apr 27, 2015 at 8:48 PM, Ryosuke Niwa wrote: > One thing that worries me about the `distribute` callback approach (a.k.a. > Anne's approach) is that it bakes distribution algorithm into the platform > without us having thoroughly studied how subclassing will be done upfront. > > Mozilla t

Re: Imperative API for Node Distribution in Shadow DOM (Revisited)

2015-04-29 Thread Dimitri Glazkov
On Tue, Apr 28, 2015 at 1:52 PM, Ryosuke Niwa wrote: > I've updated the gist to reflect the discussion so far: > https://gist.github.com/rniwa/2f14588926e1a11c65d3 > > Please leave a comment if I missed anything. > Thank you for doing this. There are a couple of unescaped tags in https://gist.gi

Re: Imperative API for Node Distribution in Shadow DOM (Revisited)

2015-04-29 Thread Tab Atkins Jr.
On Wed, Apr 29, 2015 at 4:15 PM, Dimitri Glazkov wrote: > On Mon, Apr 27, 2015 at 8:48 PM, Ryosuke Niwa wrote: >> One thing that worries me about the `distribute` callback approach (a.k.a. >> Anne's approach) is that it bakes distribution algorithm into the platform >> without us having thoroughl

Re: Imperative API for Node Distribution in Shadow DOM (Revisited)

2015-04-29 Thread Ryosuke Niwa
> On Apr 29, 2015, at 4:15 PM, Dimitri Glazkov wrote: > > On Mon, Apr 27, 2015 at 8:48 PM, Ryosuke Niwa wrote: >> One thing that worries me about the `distribute` callback approach (a.k.a. >> Anne's approach) is that it bakes distribution algorithm into the platform >> without us having thoro

Re: Imperative API for Node Distribution in Shadow DOM (Revisited)

2015-04-29 Thread Ryosuke Niwa
> On Apr 29, 2015, at 4:37 PM, Tab Atkins Jr. wrote: > > On Wed, Apr 29, 2015 at 4:15 PM, Dimitri Glazkov wrote: >> On Mon, Apr 27, 2015 at 8:48 PM, Ryosuke Niwa wrote: >>> One thing that worries me about the `distribute` callback approach (a.k.a. >>> Anne's approach) is that it bakes distribu

Re: Imperative API for Node Distribution in Shadow DOM (Revisited)

2015-04-29 Thread Tab Atkins Jr.
On Wed, Apr 29, 2015 at 4:47 PM, Ryosuke Niwa wrote: >> On Apr 29, 2015, at 4:37 PM, Tab Atkins Jr. wrote: >> On Wed, Apr 29, 2015 at 4:15 PM, Dimitri Glazkov wrote: >>> On Mon, Apr 27, 2015 at 8:48 PM, Ryosuke Niwa wrote: One thing that worries me about the `distribute` callback approach

Re: Imperative API for Node Distribution in Shadow DOM (Revisited)

2015-04-29 Thread Justin Fagnani
Here's one case of redistribution: https://github.com/Polymer/core-scaffold/blob/master/core-scaffold.html#L122 Any time you see inside a custom element it's potentially redistribution. Here there's on that is (line 122), and one that could be (line 116), and one that definitely isn't (line 106).

Re: Imperative API for Node Distribution in Shadow DOM (Revisited)

2015-04-29 Thread Ryosuke Niwa
> On Apr 29, 2015, at 4:16 PM, Dimitri Glazkov wrote: > > On Tue, Apr 28, 2015 at 1:52 PM, Ryosuke Niwa wrote: >> I've updated the gist to reflect the discussion so far: >> https://gist.github.com/rniwa/2f14588926e1a11c65d3 >> >> Please leave a comment if I missed anything. > > Thank you for

Re: Imperative API for Node Distribution in Shadow DOM (Revisited)

2015-04-29 Thread Dimitri Glazkov
On Wed, Apr 29, 2015 at 5:59 PM, Ryosuke Niwa wrote: > > > On Apr 29, 2015, at 4:16 PM, Dimitri Glazkov > wrote: > > > > On Tue, Apr 28, 2015 at 1:52 PM, Ryosuke Niwa wrote: > >> I've updated the gist to reflect the discussion so far: > >> https://gist.github.com/rniwa/2f14588926e1a11c65d3 > >>

Re: Imperative API for Node Distribution in Shadow DOM (Revisited)

2015-04-29 Thread Ryosuke Niwa
> On Apr 29, 2015, at 5:12 PM, Justin Fagnani wrote: > > Here's one case of redistribution: > https://github.com/Polymer/core-scaffold/blob/master/core-scaffold.html#L122 > > Any time you see inside a custom element it's potentially > redistribution. Here there's on that is (line 122), and o

Re: Inheritance Model for Shadow DOM Revisited

2015-04-29 Thread Hayato Ito
Thanks. As far as my understanding is correct, the conclusions so far are: - There is no use cases which " as function" can't support, but "" can support. - there are use cases which " as function" can support, but "" can't support. - " as function" is more expressive than "" - "" is trying to ach