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

Re: XPath & CSS, again

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 08 Apr 2005 12:28:52 +0200
To: Anne van Kesteren <fora@annevankesteren.nl>
Cc: www-style@w3.org
Message-ID: <426259e6.63707265@smtp.bjoern.hoehrmann.de>

* 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).
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Friday, 8 April 2005 10:28:29 GMT

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