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

Re: Support getElementById and other methods of ShadowRoot on DocumentFragment

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 29 Jun 2012 18:09:14 -0400
Message-ID: <4FEE278A.2070408@mit.edu>
To: Ryosuke Niwa <rniwa@webkit.org>
CC: Olli Pettay <Olli.Pettay@helsinki.fi>, www-dom@w3.org
On 6/29/12 5:30 PM, Ryosuke Niwa wrote:
> Any detached DOM tree as I understand it.

This seems to work just fine in WebKit for me:

   <!DOCTYPE html>
   <pre><script>
     var d = document.createElement("div");
     d.innerHTML = '<p><span class="x">Text</span><span></span></p>';
     document.writeln(d.querySelector(".x"));
     document.writeln(d.querySelectorAll("span").length);
   </script>

so I'm not sure what you were being told, exactly....

-Boris
Received on Friday, 29 June 2012 22:09:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 29 June 2012 22:09:49 GMT