Re: [attr|=""] Selector

* Bert Bos wrote:
>I don't care whether the empty string matches everything or nothing 
>(although I suspect that most people will not consider the empty string 
>to be a prefix of anything), but I think we should be consistent.

They would generally expect that starts-with($x, $x) returns true for
any string $x, however, which is also how XPath handles the issue (the
empty string is a substring of any string, so any string starts with
and ends with it). The analogous of [example~=""] does not match be-
cause the empty string is not a token so it cannot be in the token set.
Björn Höhrmann · ·
Weinh. Str. 22 · Telefon: +49(0)621/4309674 ·
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · 

Received on Wednesday, 2 April 2008 22:26:14 UTC