W3C home > Mailing lists > Public > www-style@w3.org > January 2006

I18n comment: matching lang values

From: <ishida@w3.org>
Date: Sat, 21 Jan 2006 10:50:18 +0000
To: www-style@w3.org, public-i18n-core@w3.org
Message-Id: <20060121105015.83F324F1D3@homer.w3.org>

Comment from the i18n review of:
http://www.w3.org/TR/2005/WD-css3-selectors-20051215/

Comment 15
At http://www.w3.org/International/reviews/0601-css3-selectors/
Editorial/substantive: S
Location in reviewed document:
Sec. 6.6.3 [http://www.w3.org/TR/2005/WD-css3-selectors-20051215/#lang-pseudo]

Comment:
"based solely on the identifier C being either equal to, or a hyphen-separated substring of,"


Actually it has to match the hyphen separated values starting from the beginning. ie. 'AU' cannot match 'en-AU'. Perhaps this can be expressed in a similar way to E[foo^="bar"], ie. 'based solely on the identifier C being either equal to, or exactly beginning the element's language value'.

Or you could perhaps define it in a similar way to XPath, which says "s the same as or is a sublanguage of the language as defined by RFC 3066 or its successor".This may be safer, as the matching rules may change slightly with the successor to RFC 3066.



> From: Daniel Glazman 
> [mailto:daniel.glazman@disruptive-innovations.com] 
> Sent: 20 January 2006 16:00

> #15 yep, and I wonder how we missed that one !
Received on Saturday, 21 January 2006 10:50:19 GMT

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