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

Re: [attr|=""] Selector

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 03 Apr 2008 00:25:34 +0200
To: Bert Bos <bert@w3.org>
Cc: www-style@w3.org
Message-ID: <hdt7v35q3etj279hhbg4nnk8pjeoil4cr0@hive.bjoern.hoehrmann.de>

* 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 · 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 Wednesday, 2 April 2008 22:26:14 GMT

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