[webkit-dev] Shadow nodes in webkit
giri.rao at gmail.com
Fri Oct 24 08:56:29 PDT 2008
On Fri, Oct 24, 2008 at 5:35 AM, Nikolas Zimmermann <
zimmermann at physik.rwth-aachen.de> wrote:
> 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:
>> On Thu, Oct 23, 2008 at 9:28 PM, Adele Peterson <adele at apple.com> wrote:
>> > 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
>> > can be traversed in the render tree. For example, a text field or text
>> > has a shadow DOM that contains all the text inside the control. A file
>> > upload control has a shadow nodes for the "choose file" button. This
>> > 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 trees:
> 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