W3C home > Mailing lists > Public > www-style@w3.org > August 2013

Re: [css-om] CSSStyleDeclaration.parentElement

From: Simon Pieters <simonp@opera.com>
Date: Mon, 26 Aug 2013 21:09:50 +0200
To: "www-style@w3.org" <www-style@w3.org>, Fran├žois REMY <francois.remy.dev@outlook.com>
Message-ID: <op.w2ft6ot9idj3kv@simons-macbook-pro.local>
On Fri, 23 Aug 2013 19:51:56 +0200, Fran├žois REMY  
<francois.remy.dev@outlook.com> wrote:

> The only question that remains is what do you do for Pseudo-Elements. I  
> quite remember there were discussions for exposing pseudo-elements has  
> something really simple having a few "style" properties but it seems  
> marked as At-Risk in the current spec  
> (http://dev.w3.org/csswg/cssom/#the-pseudoelement-interface).

All new things get marked at risk until there are implementations.

> By the way, if I can make some suggestion, we should probably expose  
> both "parentNode"/"parentElement" properties on a pseudo-element, as  
> well as a "tagName"/"nodeName" whose value would be "::before" or  
> "::after". Otherwise, you've no idea which pseudo-element you work with  
> if you get a reference to one. 		 	   		

Good point. Are the use cases for this are similar to those of ownerNode  
(or parentElement) on CSSStyleDeclaration?

Simon Pieters
Opera Software
Received on Monday, 26 August 2013 19:04:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:33 UTC