|
1 | 1 | <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'> |
2 | 2 | <html lang="en"> |
3 | | -<!-- $Id: selector.src,v 2.77 2003-10-17 17:52:46 bbos Exp $ --> |
| 3 | +<!-- $Id: selector.src,v 2.78 2003-10-31 16:41:34 bbos Exp $ --> |
4 | 4 | <head> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
6 | 6 | <title>Selectors</title> |
@@ -351,7 +351,7 @@ always starts at the beginning of the attribute value. |
351 | 351 | This is primarily |
352 | 352 | intended to allow <span class="index-inst" title="language |
353 | 353 | code">language subcode</span> matches (e.g., the "lang" |
354 | | -attribute in HTML) as described in RFC 1766 ([[-RFC1766]]). |
| 354 | +attribute in HTML) as described in RFC 3066 ([[-RFC3066]]). |
355 | 355 | </dl> |
356 | 356 |
|
357 | 357 | <p>Attribute values must be identifiers or strings. The |
@@ -926,19 +926,45 @@ META element, and possibly by information from the protocol (such as |
926 | 926 | HTTP headers). XML uses an attribute called xml:lang, and there may be |
927 | 927 | other document language-specific methods for determining the language. |
928 | 928 |
|
929 | | -<p>The pseudo-class ':lang(C)' matches if the element is in |
930 | | -language C. Here C is a <span class="index-inst" |
931 | | -title="language code">language code</span> as specified in |
932 | | -HTML 4.0 [[HTML40]] and RFC 1766 [[-RFC1766]]. It is matched |
933 | | -the same way as for the <a href="#attribute-selectors">'|=' |
934 | | -operator</a>. |
| 929 | +<del cite="http://www.damowmow.com/temp/csswg/css21/issues" |
| 930 | +title="issue 124"> |
| 931 | +<p>The pseudo-class ':lang(C)' matches if the element is in language |
| 932 | +C. Here C is a <span class="index-inst" title="language code">language |
| 933 | +code</span> as specified in HTML 4.0 [[HTML40]] and RFC 1766 |
| 934 | +[[-RFC1766]]. It is matched the same way as for the <a |
| 935 | +href="#attribute-selectors">'|=' operator</a>.</p> |
| 936 | +</del> |
| 937 | + |
| 938 | +<ins cite="http://www.damowmow.com/temp/csswg/css21/issues" |
| 939 | +title="issue 124"> |
| 940 | +<p>The pseudo-class ':lang(C)' matches if the element is in language |
| 941 | +C. That is, whether there is a match is based solely on the string C |
| 942 | +being either equal to, or a hyphen-separated substring of, the lang |
| 943 | +attribute's value, in the same way as if performed by the <a |
| 944 | +href="#attribute-selectors">'|='</a> operator. The string C doesn't |
| 945 | +have to be a valid language name.</p> |
| 946 | +</ins> |
| 947 | +<ins cite="http://www.damowmow.com/temp/csswg/css21/issues" title="issue 123"> |
| 948 | +Exception: if C is empty, the pseudo-class matches if the element is |
| 949 | +in <em>no</em> language, rather than in any language. |
| 950 | +</ins> |
| 951 | + |
| 952 | +<ins cite="http://www.damowmow.com/temp/csswg/css21/issues" |
| 953 | +title="issue 124, 122"> |
| 954 | +<p class=note>Note: It is recommended, however, that documents and |
| 955 | +protocols indicate language using codes from RFC 3066 [[RFC3066]] or |
| 956 | +its successor, and by means of "xml:lang" attributes in the case of |
| 957 | +XML-based documents [[XML]]. See <a |
| 958 | +href="http://www.w3.org/International/questions/qa-lang-2or3.html"> |
| 959 | +"FAQ: Two-letter or three-letter language codes."</a></p> |
| 960 | +</ins> |
935 | 961 |
|
936 | 962 | <div class="example"> |
937 | 963 | <p>The following rules set the quotation marks for an HTML document |
938 | | -that is either in French or German:</p> |
| 964 | +that is either in <ins>Canadian</ins> French or German:</p> |
939 | 965 |
|
940 | 966 | <pre> |
941 | | -html:lang(fr) { quotes: '� ' ' �' } |
| 967 | +html:lang(fr<ins>-ca</ins>) { quotes: '� ' ' �' } |
942 | 968 | html:lang(de) { quotes: '�' '�' '\2039' '\203A' } |
943 | 969 | :lang(fr) > Q { quotes: '� ' ' �' } |
944 | 970 | :lang(de) > Q { quotes: '�' '�' '\2039' '\203A' } |
|
0 commit comments