W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2012

Re: Support getElementById and other methods of ShadowRoot on DocumentFragment

From: Elliott Sprehn <esprehn@gmail.com>
Date: Fri, 29 Jun 2012 12:28:46 -0700
Message-ID: <CAPJYB1hjCg0SQOc1CaoeCo1pXmTXFPMWaTuNybKo6HVVK6ehAA@mail.gmail.com>
To: Ryosuke Niwa <rniwa@webkit.org>
Cc: www-dom <www-dom@w3.org>
On Fri, Jun 29, 2012 at 11:47 AM, Ryosuke Niwa <rniwa@webkit.org> wrote:

> ...
> Then I'm opposed to adding this on DocumentFragment. Like mutation events,
> live node lists and HTMLCollection are two of the worst APIs. We've got rid
> of mutation events in shadow DOM in the favor of mutation observers. We
> should do the same so that we don't expose any live node lists or
> HTMLCollection inside the shadow DOM. Over time, authors will learn to use
> methods that return static node lists.
So then we should remove them from ShadowRoot too? I don't see a reason
that ShadowRoot should be a special DocumentFragment.

- E
Received on Friday, 29 June 2012 19:29:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:00 UTC