[css3-selectors] add reference for lang selector

View: New views
2 Messages — Rating Filter:   Alert me  

[css3-selectors] add reference for lang selector

by Nicolas Krebs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

"Selectors Level 3" (aka "CSS Selectors module level 3" in
http://lists.w3.org/Archives/Public/www-style/2009Jan/0317.html#start317 ),
W3C Working Draft 10 March 2009, section 6.6.3 "The language pseudo-class :lang",
http://www.w3.org/TR/2009/WD-css3-selectors-20090310/#lang-pseudo
could refer to / could include a reference to
RFC 4647 "Matching of Language Tags", September 2006, section 3.3.1 "Basic Filtering",
http://tools.ietf.org/html/rfc4647#section-3.3.1 
with which ":lang(fr-be)" match "fr" and "fr-be" but not "fr-Latn-be",
which is how :lang() currently work if I understand correctly.





Re: [css3-selectors] add reference for lang selector

by fantasai :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Nicolas Krebs wrote:

> Hello,
>
> "Selectors Level 3" (aka "CSS Selectors module level 3" in
> http://lists.w3.org/Archives/Public/www-style/2009Jan/0317.html#start317 ),
> W3C Working Draft 10 March 2009, section 6.6.3 "The language pseudo-class :lang",
> http://www.w3.org/TR/2009/WD-css3-selectors-20090310/#lang-pseudo
> could refer to / could include a reference to
> RFC 4647 "Matching of Language Tags", September 2006, section 3.3.1 "Basic Filtering",
> http://tools.ietf.org/html/rfc4647#section-3.3.1 
> with which ":lang(fr-be)" match "fr" and "fr-be" but not "fr-Latn-be",
> which is how :lang() currently work if I understand correctly.

Hi Nicolas,
Given that Selectors currently doesn't handle '*' as a wildcard in :lang(),
I think it would be more confusing than helpful to include a reference to
RFC4647. Therefore I'd like to leave the spec as-is in this respect.

Please let me know if this is acceptable.

~fantasai