Thanks Rick.<br><br>Giri<br><br><div class="gmail_quote">On Thu, Oct 23, 2008 at 6:43 PM, Rick <span dir="ltr"><<a href="mailto:graham.rick@gmail.com">graham.rick@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This link may be of assistance: <a href="http://www.w3.org/TR/2004/WD-sXBL-20040901/" target="_blank">http://www.w3.org/TR/2004/WD-sXBL-20040901/</a><br>
<div><div></div><div class="Wj3C7c"><br>
On Thu, Oct 23, 2008 at 9:28 PM, Adele Peterson <<a href="mailto:adele@apple.com">adele@apple.com</a>> wrote:<br>
> Hi Giri,<br>
> WebKit creates shadow nodes for many of the form controls. As you noticed,<br>
> these nodes are not visible from the DOM, but the renderers for those nodes<br>
> can be traversed in the render tree. For example, a text field or text area<br>
> has a shadow DOM that contains all the text inside the control. A file<br>
> upload control has a shadow nodes for the "choose file" button. This is<br>
> just a way for WebKit to build elements using HTML without exposing the<br>
> internal details to web content.<br>
> - Adele<br>
> On Oct 23, 2008, at 6:22 PM, Giri Rao wrote:<br>
><br>
> Hi,<br>
><br>
> I am running into a bit of a problem, let me try and explain the best I can:<br>
><br>
> I am traversing RenderObject tree in webkit. I notice that there are<br>
> certain nodes (accessed using render_object->node()) which are shadow nodes<br>
> (node->isShadow() returns true). I note down the address of one such node,<br>
> lets say the address is 100. The node name of this node is "DIV"<br>
><br>
> Now, I traverse the dom tree using Node, for each node I note down the<br>
> node's address. I am noticing that I am not seeing any nodes while<br>
> traversing the dom tree whose address is 100.<br>
><br>
> So two questions:<br>
> 1. Why would webkit create a node which is not part of the dom tree?<br>
> 2. What are shadow nodes?<br>
><br>
> Any insight is appreciated.<br>
><br>
> Thanks<br>
> Giri _______________________________________________<br>
> webkit-dev mailing list<br>
> <a href="mailto:webkit-dev@lists.webkit.org">webkit-dev@lists.webkit.org</a><br>
> <a href="http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev" target="_blank">http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev</a><br>
><br>
><br>
> _______________________________________________<br>
> webkit-dev mailing list<br>
> <a href="mailto:webkit-dev@lists.webkit.org">webkit-dev@lists.webkit.org</a><br>
> <a href="http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev" target="_blank">http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev</a><br>
><br>
><br>
<br>
<br>
<br>
</div></div>--<br>
Cheers!<br>
<font color="#888888">Rick<br>
</font></blockquote></div><br>