[webkit-dev] Shadow DOM API (first iteration) ready for landing

Dimitri Glazkov dglazkov at chromium.org
Tue Jun 28 17:15:33 PDT 2011


On Tue, Jun 28, 2011 at 4:49 PM, Geoffrey Garen <ggaren at apple.com> wrote:
> Hi Dmitri.
>
>> Since this is an experimental API, here are the actual API names we want to use:
>>
>> Element.webkitShadow
>> Element.webkitPseudo
>> document.webkitCreateShadow()
>> window.WebKitShadowRootConstructor
>> window.WebKitTreeScopeConstructor
>
> Even though we've been using "shadow" as a term in our internal development, I think it makes a bad API name, since it's vague to its purpose, and it conflicts with the existing meaning of "shadow" on the web, which is a color radiating around a visual element.

I sympathize and agree that there's a naming collision, but I think
the train has left the station on this one. "Shadow tree" and "shadow
content" are terms that have been used pretty much universally to
describe this construct, from XBL/XUL and XBL2 to SVG. I don't think
we need to invent a new name for it.

:DG<


More information about the webkit-dev mailing list