[webkit-dev] Shadow nodes in webkit
zimmermann at physik.rwth-aachen.de
Fri Oct 24 05:35:32 PDT 2008
Am 24.10.2008 um 06:07 schrieb Giri Rao:
> Thanks Rick.
> On Thu, Oct 23, 2008 at 6:43 PM, Rick <graham.rick at gmail.com> wrote:
> This link may be of assistance: http://www.w3.org/TR/2004/WD-sXBL-20040901/
> On Thu, Oct 23, 2008 at 9:28 PM, Adele Peterson <adele at apple.com>
> > Hi Giri,
> > WebKit creates shadow nodes for many of the form controls. As you
> > these nodes are not visible from the DOM, but the renderers for
> those nodes
> > can be traversed in the render tree. For example, a text field or
> text area
> > has a shadow DOM that contains all the text inside the control. A
> > upload control has a shadow nodes for the "choose file" button.
> This is
> > just a way for WebKit to build elements using HTML without
> exposing the
> > internal details to web content.
> > - Adele
> > On Oct 23, 2008, at 6:22 PM, Giri Rao wrote:
Just for the record: there's another part of the source using shadow
SVG <use> elements deep-clone the referenced element, and append it to
a container node,
which is marked as shadow tree element. The shadow container node
itself gets appended
to the <use> element. So whenever you'd traverse a <use> DOM tree,
you'd notice a shadow
tree element as first child.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev