[webkit-dev] Multiple inheritance in the DOM

Elliott Sprehn esprehn at chromium.org
Thu Jul 26 15:54:09 PDT 2012


On Thu, Jul 26, 2012 at 3:45 PM, Alexandru Chiculita <achicu at adobe.com>wrote:

> ...
> If CSSPseudoElement would be designed to derive from the same base class
> as Element and share most of their style/layout properties, then 99% of the
> time people will just do region.element.style.top = '100px'; and no query
> interface would be needed.
>
>
I brought this up in #webkit yesterday, but Adam Barth made a good point
that making CSSPseudoElement an Element means you could appendChild it
anywhere, or even append children to it which doesn't make sense.

You could make detaching a CSSPseudoElement or appending a child to it an
error (which is easy since that's centralized in WebKit), but it's a little
weird in the spec.

- E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20120726/ca8eab7d/attachment.html>


More information about the webkit-dev mailing list