Bert Bos wrote: > This test: > > http://www.w3.org/Style/Examples/013/css3-selectors-0603-empty.html > > tries to test substring-matching attribute selectors ~=, |=, ^=, *=, $= > (Selectors section 6.3[1]) with empty values, such as p[title^=""]. > > It assumes that such selectors are valid (i.e., not ignored) but match > nothing. I think that is what we decided last week[2]. I'm not sure if > we decided anything for |=, but it seems consistent to treat it the > same way. > > This test: > > http://www.w3.org/Style/Examples/013/t050801-empty-attr-01.html > > is the same, except that it only tests ~= and |=, and is thus suitable > for CSS level 2, section 5.8.1[3]. > > [1] http://www.w3.org/TR/css3-selectors/#attribute-selectors > [2] http://www.w3.org/2008/03/28-css-irc.html#T00-52-44 > [3] http://www.w3.org/TR/CSS21/selector.html#matching-attrs Bert, [attr|=""] is not an ambiguous (match everything or match nothing) case. It is very clear from the existing definition that it should match attr="" attr="-foo" attr="-" and not attr="foo--" attr="foo" ~fantasaiReceived on Wednesday, 2 April 2008 16:50:42 UTC
This archive was generated by hypermail 2.4.0 : Friday, 20 January 2023 19:58:13 UTC