W3C home > Mailing lists > Public > www-style@w3.org > November 2014

Re: [css-pseudo][cssom] PseudoElement vs CSSPseudoElement

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Wed, 05 Nov 2014 14:26:48 +0100
Message-ID: <545A2598.1040005@disruptive-innovations.com>
To: www-style@w3.org
On 05/11/2014 01:25, Brian Birtles wrote:
> Hi,
>
> CSSOM defines PseudoElement:
>
>    http://dev.w3.org/csswg/cssom/#the-pseudoelement-interface
>
> CSS Pseudo-Elements defines CSSPseudoElement:
>
>    http://dev.w3.org/csswg/css-pseudo/#CSSPseudoElement-interface
>
> Which spec is going to define this?
>
> Similarly, CSSOM defines Element.pseudo(type) while CSS Pseudo-Elements
> defines Window.getPseudoElements(elem, type) for what seems to be the
> same purpose. [Also, I notice that Window.getPseudoElements() takes a
> type, then returns a list that can be filtered by type which seems odd
> to me.]

Hi Brian,

Both definitions are only proposals at this time. The former has never
been published in a WD, the latter is in a spec that never reach WD
before... So if your question is "which one should I implement?", I
guess the answers is "none at this time". I am going to work on the
CSS OM, because what we have nowadays is so weak and I could even
say rotten it's almost not usable. We probably to need to rethink it
from scratch.

</Daniel>
Received on Wednesday, 5 November 2014 13:27:13 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:26 UTC