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

Re: Support getElementById and other methods of ShadowRoot on DocumentFragment

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Fri, 29 Jun 2012 13:53:23 -0700
Message-ID: <CABNRm63L7tyVPP4wNuG2OAtpw=2sP2bgq2zf9y2=sJZftuOoWA@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-dom@w3.org
On Fri, Jun 29, 2012 at 12:38 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 6/29/12 3:33 PM, Ryosuke Niwa wrote:
>> We can't expose querySelector on DocumentFragment because fragment
>> doesn't have the view
> What view?  I don't understand why we can't expose querySelector on
> DocumentFragment, except for the fact that we haven't.  It would be pretty
> trivial to implement, I would think.

The last time I checked, WebKit had some architectural constraint that
prevented us from executing CSS queries on a detached frame. We could make
it work in theory but it'll require a significant amount of work as far as
I understand it.

- Ryosuke
Received on Friday, 29 June 2012 20:54:11 UTC

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