Re: [css-2010] missing ~ operator in appendix G.

Le Lun 19 août 2013 17:59, "Gérard Talbot" a écrit :
>
> Le Lun 19 août 2013 17:34, fantasai a écrit :
>> On 04/02/2013 02:03 PM, William McKee wrote:
>>> Currently in Appendix G of the the Cascading Style Sheets (CSS)
>>> Snapshot
>>> 2010, the YACC rule for the combinator operators is:
>>>
>>>
>>> combinator
>>>    : '+' S*
>>>    | '>' S*
>>>    ;
>>>
>>>
>>> Is should read:
>>>
>>> combinator
>>>    : '+' S*
>>>    | '>' S*
>>>
>>>    | '~' S*
>>>    ;
>>
>> Hi!
>> I don't see that the CSS Snapshot 2010 has an Appendix G.
>> (CSS2.1 has an Appendix G with such a rule, but it doesn't
>> include the ~ combinator, which was introduced in Level 3.)
>> Could you perhaps send me a link of where you're seeing
>> the error? Because I'm not sure atm what exactly you're
>> pointing at. :)
>>
>> ~fantasai

Oops....

~ combinator is a different bird. I misread that in my mind as the
attribute selector ~= .

Please ignore my post.

Gérard

>
> attrib
>   : '[' S* IDENT S* [ [ '=' | INCLUDES | DASHMATCH ] S*
>     [ IDENT | STRING ] S* ]? ']'
>   ;
>
> http://www.w3.org/TR/CSS21/grammar.html#grammar
>
> I think INCLUDES is/represents/can be substituted with "~=" and DASHMATCH
> is/represents/can be substituted with "|=" in that grammar/lexical
> analysis declaration.
>
> -----------
>
> By the way, we have - it appears - only 2 tests with ~= attribute
> selector:
>
> http://test.csswg.org/suites/css2.1/nightly-unstable/html4/attribute-value-selector-003.htm
>
> http://test.csswg.org/suites/css2.1/nightly-unstable/html4/attribute-004.htm
>
> and test authors refer to it as "partial match selector" or as "value
> match in space-separated list" but not as includes attribute selector.
>
> § 5.8.1 [1] should at least give such selectors a name by which we could
> all refer to it in a consistent manner.
>
> [1] 5.8.1 Matching attributes and attribute values
> http://www.w3.org/TR/CSS21/selector.html#matching-attrs


-- 
CSS 2.1 Test suite RC6, March 23rd 2011
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html

Contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

Web authors' contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html

Received on Monday, 19 August 2013 22:05:26 UTC