@@ -1893,36 +1893,36 @@ The Language Pseudo-class: '':lang()''</h3>
18931893 the (human) <a>content language</a> of an element is determined,
18941894 it is possible to write selectors that
18951895 represent an element based on its <a>content language</a> .
1896- The <dfn id='lang-pseudo'>:lang()</dfn> pseudo-class represents an element that
1897- is in one of the languages listed in its argument. It accepts
1898- a comma-separated list of one or more <a>language ranges</a> as its
1899- argument. Each <dfn>language range</dfn> in '':lang()''
1896+ The <dfn id='lang-pseudo'>:lang()</dfn> pseudo-class,
1897+ which accepts a comma-separated list of one or more <a>language ranges</a> ,
1898+ represents an element whose [=content language=]
1899+ is one of the languages listed in its argument.
1900+ Each <dfn>language range</dfn> in '':lang()''
19001901 must be a valid CSS <<ident>> or <<string>> .
1901- (Language ranges containing asterisks, for example,
1902+ (Thus language ranges containing asterisks, for example,
19021903 must be either correctly escaped or quoted as strings,
1903- e.g. '':lang(\*-Latn)'' or '':lang("*-Latn")'' )
1904+ e.g. '':lang(\*-Latn)'' or '':lang("*-Latn")'' . )
19041905
19051906 Note: The <a>content language</a> of an element is defined by the document language.
1906- For example, in HTML [[HTML5]] , the <a>content language</a> is determined by a
1907- combination of the <code> lang</code> attribute, information from
1908- <a element>meta</a> elements, and possibly also the protocol (e.g.
1909- from HTTP headers). XML languages can use the <code> xml:lang</code>
1910- attribute to indicate language information for an element. [[XML10]]
1911-
1912- The element's <a>content language</a> matches a <a>language range</a> if
1913- its <a>content language</a> , as represented in BCP 47 syntax,
1914- matches the given <a>language range</a> in an <var> extended filtering</var>
1907+ For example, in HTML [[HTML5]] , the <a>content language</a> is determined
1908+ by a combination of the <code> lang</code> attribute,
1909+ information from <a element>meta</a> elements,
1910+ and possibly also the protocol (e.g. from HTTP headers).
1911+ XML languages can use the <code> xml:lang</code> attribute
1912+ to indicate language information for an element. [[XML10]]
1913+
1914+ An element's <a>content language</a> matches a <a>language range</a> if,
1915+ when represented in BCP 47 syntax [[BCP47]] ,
1916+ it matches that <a>language range</a> in an <var> extended filtering</var>
19151917 operation per [[RFC4647]] <cite> Matching of Language Tags</cite> (section 3.3.2).
19161918 The matching is performed [=ASCII case-insensitively=] .
19171919 The <a>language range</a> does not need to be a valid language code to
19181920 perform this comparison.
19191921
1920- Note: It is recommended that
1921- documents and protocols indicate language using codes from BCP 47 [[BCP47]]
1922- or its successor, and by means of <code> xml:lang</code> attributes in the
1923- case of XML-based documents [[XML10]] . See <a
1924- href="http://www.w3.org/International/questions/qa-lang-2or3.html">
1925- "FAQ: Two-letter or three-letter language codes."</a>
1922+ Note: It is recommended that documents and protocols
1923+ indicate language using codes from [[BCP47]] or its successor,
1924+ and in the case of XML-based formats, by means of <code> xml:lang</code> attributes. [[XML10]]
1925+ See <a href="http://www.w3.org/International/questions/qa-lang-2or3.html">“FAQ: Two-letter or three-letter language codes.”</a>
19261926
19271927 <div class="example">
19281928 Examples:
0 commit comments