W3C home > Mailing lists > Public > www-style@w3.org > April 2005

Re: XPath & CSS, again

From: Allan Sandfeld Jensen <kde@carewolf.com>
Date: Fri, 8 Apr 2005 12:38:54 +0200
To: www-style@w3.org
Message-Id: <200504081238.55079.kde@carewolf.com>

On Friday 08 April 2005 12:28, Bjoern Hoehrmann wrote:
> * Anne van Kesteren wrote:
> >Robin Berjon wrote:
> >>>> As said in the archived posts: it is no problem for todays user-agents
> >>>> to use XPath
> >>>
> >>> I think it would be a problem. As it goes against all CSS parsing
> >>> rules.
> >>
> >> Not if you put it in a string.
> >
> >I'm not sure I understand. Selecting previous-siblings, parent/ancestor
> >elements, et cetera. CSS is designed around a model that XPath is not
> >compatible with.
>
> Determining which declarations apply to a specific element is something
> that happens long after "parsing rules". It easy to implement in fact,
> the problems are rather possible performance and user experience issues
> (which selectors like :last-of-type have, too).
To not meantion :nth-last-of-type(odd). 

To change topic: Have you considered what kind of behaviour those selectors 
should even have in incrementally loaded pages?

In konqueror they are not applied until the parent is closed. 

`Allan
Received on Friday, 8 April 2005 10:38:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:36 GMT