Re: XPath & CSS, again

* 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 UTC