Skip to content

Commit 96e7d57

Browse files
committed
[css2] Added some INS/DEL for issues 122-124.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402188
1 parent f8d339d commit 96e7d57

1 file changed

Lines changed: 36 additions & 10 deletions

File tree

css2/selector.src

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
22
<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 $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Selectors</title>
@@ -351,7 +351,7 @@ always starts at the beginning of the attribute value.
351351
This is primarily
352352
intended to allow <span class="index-inst" title="language
353353
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]]).
355355
</dl>
356356

357357
<p>Attribute values must be identifiers or strings. The
@@ -926,19 +926,45 @@ META element, and possibly by information from the protocol (such as
926926
HTTP headers). XML uses an attribute called xml:lang, and there may be
927927
other document language-specific methods for determining the language.
928928

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&nbsp;4.0 [[HTML40]] and RFC&nbsp;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&nbsp;4.0 [[HTML40]] and RFC&nbsp;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>
935961

936962
<div class="example">
937963
<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>
939965

940966
<pre>
941-
html:lang(fr) { quotes: '� ' ' �' }
967+
html:lang(fr<ins>-ca</ins>) { quotes: '� ' ' �' }
942968
html:lang(de) { quotes: '�' '�' '\2039' '\203A' }
943969
:lang(fr) > Q { quotes: '� ' ' �' }
944970
:lang(de) > Q { quotes: '�' '�' '\2039' '\203A' }

0 commit comments

Comments
 (0)