Re: Support getElementById and other methods of ShadowRoot on DocumentFragment

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