Re: Support getElementById and other methods of ShadowRoot on DocumentFragment

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 UTC