W3C home > Mailing lists > Public > www-style@w3.org > September 2001

Re: OT: selectors (RE: Excluding declarations from the cascade)

From: Ian Hickson <ianh@hixie.ch>
Date: Mon, 3 Sep 2001 14:37:08 +0000 (GMT)
To: Manos Batsis <m.batsis@bsnet.gr>
cc: www-style@w3.org
Message-ID: <Pine.LNX.4.21.0109031428120.20313-100000@dhalsim.dreamhost.com>
On Mon, 3 Sep 2001, Manos Batsis wrote:
> 
> Will someone please tell me what I should read to understand why I can't
> use XPath instead of using a new selector language?

XPath is newer than selectors. This is the third release of the Selectors
language, which was first released as part of CSS1 in 1996.

Selectors are designed with dynamic environments in mind, making them very
suitable for things like web browsers, which may try to match several
hundred selectors against several thousand elements every time the user
moves the mouse. XPath is significantly harder to optimise for cases like
this, as might be expected as it was designed to be complete, not dynamic.

-- 
Ian Hickson                                     )\     _. - ._.)       fL
                                               /. `- '  (  `--'
                                               `- , ) -  > ) \
irc.mozilla.org:Hixie _________________________  (.' \) (.' -' __________
Received on Monday, 3 September 2001 10:37:21 GMT

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