| 32 |
<section id="character-encoding-layer"> |
<section id="character-encoding-layer"> |
| 33 |
<h2>Character Encoding Layer Errors</h2> |
<h2>Character Encoding Layer Errors</h2> |
| 34 |
|
|
| 35 |
<div class="section" id="illegal-octets-error"><h3>An illegal octet in the input stream.</h3></div> |
<div class="section" id="fallback-char-error"><h3>Octet sequence <code><var>{octets}</var></code> |
| 36 |
|
is not an allowed representation of the character |
| 37 |
|
<code><var>{char}</var></code> — character reference |
| 38 |
|
<code><var>{char:hexref}</var></code> should be used instead.</h3></div> |
| 39 |
|
|
| 40 |
|
<div class="section" id="fallback-unassigned-error"><h3>No character is assigned to octet sequence |
| 41 |
|
<code><var>{octets}</var></code>.</h3></div> |
| 42 |
|
|
| 43 |
|
<div class="section" id="illegal-octets-error"><h3>Octet sequence <code><var>{octets}</var></code> |
| 44 |
|
is illegal.</h3></div> |
| 45 |
|
|
| 46 |
|
<div class="section" id="invalid-state-error"><h3>The input stream is broken.</h3> |
| 47 |
|
<p>The input stream is encoded in <code>ISO-2022-JP</code> |
| 48 |
|
or its variant but is partially broken.</p> |
| 49 |
|
|
| 50 |
|
<p>Note that an <code>ISO-2022-JP</code> stream must end in the ASCII |
| 51 |
|
state.</p> |
| 52 |
|
</div> |
| 53 |
|
|
| 54 |
|
<div class="section" id="unassigned-code-point-error"><h3>No character is assigned to octet sequence |
| 55 |
|
<code><var>{octets}</var></code>.</h3></div> |
| 56 |
</section> |
</section> |
| 57 |
|
|
| 58 |
<section id="html5-character-encoding"> |
<section id="html5-character-encoding"> |
| 141 |
for the character encoding of this document is found in the transfer |
for the character encoding of this document is found in the transfer |
| 142 |
procotol headers.</h3></div> |
procotol headers.</h3></div> |
| 143 |
|
|
| 144 |
<div class="section" id="chardecode:fallback"><h3>Since no decoder for the document character |
<div class="section" id="chardecode:fallback"><h3>Results might be <em>wrong</em>, since the |
| 145 |
encoding is found, decoder for the character encoding |
conformance checker cannot find an appropriate decoder for the character |
| 146 |
<code><var>{text}</var></code> is used. Checking results might be |
encoding used for the document.</h3> |
| 147 |
<em>wrong</em>.</h3></div> |
<p>The conformance checker cannot find an appropriate decoder for |
| 148 |
|
the character encoding used to encode characters in the document.</p> |
| 149 |
|
|
| 150 |
|
<p>This error is raised if:</p> |
| 151 |
|
<ul> |
| 152 |
|
<li>the conformance checker cannot find any decoder for the character |
| 153 |
|
encoding in use, but it knows that the encoding is similar to another |
| 154 |
|
character encoding, such that it uses the decoder for that character |
| 155 |
|
encoding, and therefore some octets might be interpreted incorrectly, |
| 156 |
|
or,</li> |
| 157 |
|
<li>the conformance checker find a decoder for the character encoding |
| 158 |
|
in use, but it does not know whether the decoder is conforming to the |
| 159 |
|
relevant specification or not, and therefore some octets might be |
| 160 |
|
interpreted incorrectly.</li> |
| 161 |
|
</ul> |
| 162 |
|
|
| 163 |
|
<p>In either case, the result shown by the conformance checker might |
| 164 |
|
contain wrong errors caused by errorneous decoder or might not contain |
| 165 |
|
errors that should be raised if an appropriate decoder is used.</p> |
| 166 |
|
|
| 167 |
|
<!-- TODO: add advise that either install relevant modules or |
| 168 |
|
join the developmenet of the modules... --> |
| 169 |
|
</div> |
| 170 |
|
|
| 171 |
<div class="section" id="chardecode:no-error"><h3>Conformance error checking for the character |
<div class="section" id="chardecode:no-error"><h3>Conformance error checking for the character |
| 172 |
encoding <code><var>{text}</var></code> is not supported.</h3></div> |
encoding <code><var>{text}</var></code> is not supported.</h3></div> |
| 203 |
<li>Use <code>UTF-8</code>.</li> |
<li>Use <code>UTF-8</code>.</li> |
| 204 |
</ul> |
</ul> |
| 205 |
</div> |
</div> |
| 206 |
|
</section> |
| 207 |
|
|
| 208 |
|
<section id="character-set-layer"> |
| 209 |
|
<h2>Coded Character Set Layer Errors</h2> |
| 210 |
|
|
| 211 |
<div class="section" id="NULL"><h3>The <code class="charname">NULL</code> character |
<div class="section" id="NULL"><h3>The <code class="charname">NULL</code> character |
| 212 |
is not allowed.</h3></div> |
is not allowed.</h3></div> |
| 214 |
<div class="section" id="control-char"><h3>Code point <code><var>{text}</var></code> is |
<div class="section" id="control-char"><h3>Code point <code><var>{text}</var></code> is |
| 215 |
not allowed.</h3></div> |
not allowed.</h3></div> |
| 216 |
|
|
| 217 |
|
<div class="section" id="nonchar"><h3>Noncharacter <code><var>{text}</var></code> |
| 218 |
|
is found in the input stream.</h3> |
| 219 |
|
<p>Noncharacter code points are used in the input stream.</p> |
| 220 |
|
|
| 221 |
|
<p>Noncharacter code points are reserved for internal processings. |
| 222 |
|
Their use for information interchanges are forbidden.</p> |
| 223 |
|
|
| 224 |
|
<p>In addition, they are not allowed in HTML document.</p> |
| 225 |
|
<!-- "permanently undefined Unicode characters" in HTML5. --> |
| 226 |
|
</div> |
| 227 |
|
|
| 228 |
|
<div class="section" id="unicode-deprecated"><h3>Use of character <code><var>{text}</var></code> |
| 229 |
|
is deprecated.</h3></div> |
| 230 |
|
|
| 231 |
|
<div class="section" id="unicode-discouraged"><h3>Use of character <code><var>{text}</var></code> |
| 232 |
|
is discouraged.</h3></div> |
| 233 |
|
|
| 234 |
|
<div class="section" id="unicode-not-preferred"><h3>Code point <code><var>{text}</var></code> |
| 235 |
|
is not the preferred representation of that character.</h3></div> |
| 236 |
|
|
| 237 |
|
<div class="section" id="unicode-should"><h3>Character <code><var>{text}</var></code> |
| 238 |
|
should not be used in many cases.</h3></div> |
| 239 |
|
|
| 240 |
</section> |
</section> |
| 241 |
|
|
| 242 |
<section id="html5-tokenize-error"> |
<section id="html5-tokenize-error"> |
| 247 |
|
|
| 248 |
<div class="section" id="bad-attribute-value"><h3>Attribute value must be quoted by <code>"</code> |
<div class="section" id="bad-attribute-value"><h3>Attribute value must be quoted by <code>"</code> |
| 249 |
or <code>'</code> if it contains a <code>"</code>, <code>'</code>, or |
or <code>'</code> if it contains a <code>"</code>, <code>'</code>, or |
| 250 |
<code>=</code> character.</h3></div> |
<code>=</code> character.</h3> |
| 251 |
|
<p>In an unquoted attribute value, a character <code>"</code> |
| 252 |
|
(<code>U+0022</code> <code class="charname">QUOTATION MARK</code>), |
| 253 |
|
<code>'</code> (<code>U+0026</code> |
| 254 |
|
<code class="charname">APOSTROPHE</code>), or <code>=</code> |
| 255 |
|
(<code>U+003D</code> <code class="charname">EQUAL SIGN</code>) |
| 256 |
|
is contained. These characters are not allowed in unquoted attribute |
| 257 |
|
values, since they are used to quote attribute values or to separate |
| 258 |
|
attribute name and value.</p> |
| 259 |
|
|
| 260 |
|
<p>This error is also raised if one try to use empty attribute |
| 261 |
|
value like <code class="html bad example"><foo bar= baz=></code>; |
| 262 |
|
in this example, <code class="html bad example">baz=</code> is |
| 263 |
|
treated as an invalid attribute value for the attribute |
| 264 |
|
<code class="html bad example">bar</code>, not as another attribute.</p> |
| 265 |
|
</div> |
| 266 |
|
|
| 267 |
<div class="section" id="bare-ero"><h3>The <code>&</code> character must |
<div class="section" id="bare-ero"><h3>The <code>&</code> character must |
| 268 |
be escaped as <code class="html example">&amp;</code>.</h3> |
be escaped as <code class="html example">&amp;</code>.</h3> |
| 472 |
|
|
| 473 |
<div class="section" id="end-tag-attribute"><h3>End tag cannot have attributes.</h3></div> |
<div class="section" id="end-tag-attribute"><h3>End tag cannot have attributes.</h3></div> |
| 474 |
|
|
| 475 |
|
<div class="section" id="empty-unquoted-attribute-value"><h3>Attribute value is not specified.</h3> |
| 476 |
|
<p>The attribute value is not specified after the <code>=</code> |
| 477 |
|
(<code>U+003C</code> <code class="charname">EQUAL SIGN</code>) |
| 478 |
|
character.</p> |
| 479 |
|
|
| 480 |
|
<p>When an attribute value is empty, the <code>=</code> character after |
| 481 |
|
the attribute name must be specified as:</p> |
| 482 |
|
|
| 483 |
|
<p><code class="html example"><foo bar></code></p> |
| 484 |
|
|
| 485 |
|
<p>Instead, quotation marks can be used to explicitly represent that |
| 486 |
|
the attribute value is empty, as:</p> |
| 487 |
|
|
| 488 |
|
<p><code class="html example"><foo bar=""></code></p> |
| 489 |
|
|
| 490 |
|
<p>... or like:</p> |
| 491 |
|
|
| 492 |
|
<p><code class="html example"><foo bar=''></code></p> |
| 493 |
|
</div> |
| 494 |
|
|
| 495 |
<div class="section" id="invalid-character-reference"><h3>Character reference to |
<div class="section" id="invalid-character-reference"><h3>Character reference to |
| 496 |
<code><var>{text}</var></code> is not allowed.</h3></div> |
<code><var>{text}</var></code> is not allowed.</h3></div> |
| 497 |
|
|
| 646 |
<section id="html5-parse-errors"> |
<section id="html5-parse-errors"> |
| 647 |
<h2>HTML5 Parse Errors in Tree Construction Stage</h2> |
<h2>HTML5 Parse Errors in Tree Construction Stage</h2> |
| 648 |
|
|
| 649 |
|
<div class="section" id="after-after-frameset"><h3>There is a start tag |
| 650 |
|
<code><<var>{text}</var>></code> is after the <code>html</code> element |
| 651 |
|
is closed.</h3></div> |
| 652 |
|
|
| 653 |
|
<div class="section" id="after-after-frameset:/"><h3>There is an end tag |
| 654 |
|
<code></<var>{text}</var>></code> is after the <code>html</code> element |
| 655 |
|
is closed.</h3></div> |
| 656 |
|
|
| 657 |
<div class="section" id="after-body"><h3>Start tag <code><<var>{text}</var>></code> is |
<div class="section" id="after-body"><h3>Start tag <code><<var>{text}</var>></code> is |
| 658 |
not allowed after the <code>body</code> is closed.</h3></div> |
not allowed after the <code>body</code> is closed.</h3></div> |
| 659 |
|
|
| 932 |
</dl> |
</dl> |
| 933 |
</div> |
</div> |
| 934 |
|
|
| 935 |
|
<div class="section" id="XSLT-compat"><h3>The <code>DOCTYPE</code> legacy string is |
| 936 |
|
used.</h3> |
| 937 |
|
<p>The <code>DOCTYPE</code> with the <code>DOCTYPE</code> legacy |
| 938 |
|
string, i.e. |
| 939 |
|
<code class="html bad example"><!DOCTYPE HTML PUBLIC "XSLT-compat"></code> |
| 940 |
|
is used.</p> |
| 941 |
|
|
| 942 |
|
<p>The <code>DOCTYPE</code> legacy string should not be used for documents |
| 943 |
|
generated from XSLT transformation process. It is allowed only to enable |
| 944 |
|
to use XSLT style sheets with the HTML output mode, which does not |
| 945 |
|
support generation of the <code>DOCTYPE</code> with no <code>PUBLIC</code> |
| 946 |
|
identifier. For other purposes, the <code>DOCTYPE</code> legacy |
| 947 |
|
string, i.e. <code class="html bad example">PUBLIC "XSLT-compat"</code>, |
| 948 |
|
is useless and should not be used.</p> |
| 949 |
|
</div> |
| 950 |
|
|
| 951 |
</section> |
</section> |
| 952 |
|
|
| 953 |
<section id="element-content-model-errors"> |
<section id="element-content-model-errors"> |
| 1137 |
<div class="section" id="element-not-allowed:minus"><h3>This element is not allowed in this |
<div class="section" id="element-not-allowed:minus"><h3>This element is not allowed in this |
| 1138 |
context.</h3></div> |
context.</h3></div> |
| 1139 |
|
|
| 1140 |
<div class="section" id="element-not-allowed:meta-charset"><h3>The character encoding declaration must be the |
<div class="section" id="element-not-allowed:meta-charset"><h3>The character encoding declaration is not the |
| 1141 |
first element in the <code>head</code> element.</h3></div> |
first child element in the <code>head</code> element.</h3> |
| 1142 |
|
<p>The character encoding declaration |
| 1143 |
|
(<code class="html example"><meta charset="<var>...</var>"></code> or |
| 1144 |
|
<code class="html example"><meta http-equiv=Content-Type content="text/html; charset=<var>...</var>"></code> |
| 1145 |
|
must be the first child element in the <code>head</code> element.</p> |
| 1146 |
|
|
| 1147 |
|
<p>The character encoding declaration have to occur near the beginning |
| 1148 |
|
of the document to ensure that Web browsers can be determine the |
| 1149 |
|
character encoding of the document.</p> |
| 1150 |
|
|
| 1151 |
|
<p>The <code>title</code> element and other metadata elements must |
| 1152 |
|
appear after any character encoding declaration is processed.</p> |
| 1153 |
|
</div> |
| 1154 |
|
|
| 1155 |
<div class="section" id="element-not-allowed:metadata"><h3>This element is not allowed where metadata |
<div class="section" id="element-not-allowed:metadata"><h3>This element is not allowed where metadata |
| 1156 |
content is expected.</h3></div> |
content is expected.</h3></div> |
| 1204 |
<div class="section" id="element-not-allowed:atom|TextConstruct"><h3>This element is not allowed in Text |
<div class="section" id="element-not-allowed:atom|TextConstruct"><h3>This element is not allowed in Text |
| 1205 |
construct.</h3></div> |
construct.</h3></div> |
| 1206 |
|
|
| 1207 |
<div class="section" id="element-not-defined"><h3>This element is not defined.</h3></div> |
<div class="section" id="element-not-defined"><h3>This element is not defined.</h3> |
| 1208 |
|
<p>The element is not one of elements allowed |
| 1209 |
|
in the latest version of relevant specifications.</p> |
| 1210 |
|
|
| 1211 |
|
<p>The element cannot be used.</p> |
| 1212 |
|
|
| 1213 |
|
<dl class="switch"> |
| 1214 |
|
<dt><code>event-source</code> element</dt> |
| 1215 |
|
<dd>The element was renamed as <em><code>eventsource</code> |
| 1216 |
|
element</em> (no hyphen).</dd> |
| 1217 |
|
<dt><code>m</code> element</dt> |
| 1218 |
|
<dd>The element was renamed as <em><code>mark</code> |
| 1219 |
|
element</em>.</dd> |
| 1220 |
|
</dl> |
| 1221 |
|
</div> |
| 1222 |
|
|
| 1223 |
<div class="section" id="no-significant-content"><h3>No significant content is contained |
<div class="section" id="no-significant-content"><h3>No significant content is contained |
| 1224 |
in this element.</h3></div> |
in this element.</h3></div> |
| 1300 |
<div class="section" id="attribute-not-allowed:ismap"><h3>The <code>ismap</code> attribute may only be |
<div class="section" id="attribute-not-allowed:ismap"><h3>The <code>ismap</code> attribute may only be |
| 1301 |
used for the image contained in an <code>a</code> element.</h3></div> |
used for the image contained in an <code>a</code> element.</h3></div> |
| 1302 |
|
|
| 1303 |
<div class="section" id="attribute-not-defined"><h3>This attribute is not defined.</h3></div> |
<div class="section" id="attribute-not-defined"><h3>This attribute is not defined.</h3> |
| 1304 |
|
<p>The attribute is not one of attributes allowed for the element |
| 1305 |
|
in the latest version of relevant specifications.</p> |
| 1306 |
|
|
| 1307 |
|
<p>The attribute cannot be used.</p> |
| 1308 |
|
|
| 1309 |
<div class="section" id="in-HTML:xml:lang"><h3>The <code>xml:lang</code> attribute is not |
<dl class="switch"> |
| 1310 |
allowed in HTML document.</h3> |
<dt><code>align</code> attribute (various HTML elements)</dt> |
| 1311 |
<p>The <code>xml:lang</code> attribute is not allowed in |
<dt><code>border</code> attribute (various HTML elements)</dt> |
| 1312 |
HTML document. The document is non-conforming.</p> |
<dd>These attributes are no longer part of HTML. You can use CSS |
| 1313 |
|
properties to control the presentation of the element.</dd> |
| 1314 |
|
<dt><code>autosubmit</code> attribute (<code>menu</code> element)</dt> |
| 1315 |
|
<dd>The attribute was part of HTML5 draft but then dropped. |
| 1316 |
|
Similar functionality can be implemented by scripts.</dd> |
| 1317 |
|
<dt><code>language</code> attribute (<code>script</code> element)</dt> |
| 1318 |
|
<dd>The attribute is no longer the standard way to specify the |
| 1319 |
|
scripting language. If you are using JavaScript, then no explicit |
| 1320 |
|
specification of the scripting language is necessary, so you can |
| 1321 |
|
write the element like: |
| 1322 |
|
<p><code class="html example code"><script><br><!-- |
| 1323 |
|
--> /* JavaScript code */<br><!-- |
| 1324 |
|
--></script></code></p> |
| 1325 |
|
If you are using different scripting language from JavaScript, or |
| 1326 |
|
you want to declare the scripting language explicitly, you should |
| 1327 |
|
use the <code>type</code> attribute, as follows: |
| 1328 |
|
<dl class="switch"> |
| 1329 |
|
<dt>JavaScript</dt> |
| 1330 |
|
<dd>Use |
| 1331 |
|
<code class="html example"><script type="text/javascript"></code>.</dd> |
| 1332 |
|
<dt>VBScript</dt> |
| 1333 |
|
<dd>Use |
| 1334 |
|
<code class="html example"><script type="text/vbscript"></code>.</dd> |
| 1335 |
|
</dl> |
| 1336 |
|
</dd> |
| 1337 |
|
</dl> |
| 1338 |
|
</div> |
| 1339 |
|
|
| 1340 |
<p>Use of the <code>xml:lang</code> attribute is conforming |
<div class="section" id="in-HTML:xml:lang"><h3>The <code>xml:lang</code> attribute in HTML |
| 1341 |
<em>only</em> in XML documents.</p> |
document is ignored.</h3> |
| 1342 |
|
<p>The <code>xml:lang</code> attribute does not have an effect in |
| 1343 |
|
HTML document.</p> |
| 1344 |
|
|
| 1345 |
|
<p>The <code>xml:lang</code> attribute is only applicable to XML |
| 1346 |
|
documents. In HTML document, it is only allowed to ease migration |
| 1347 |
|
from XML.</p> |
| 1348 |
|
|
| 1349 |
<p>To specify natural language information in HTML document, |
<p>To specify natural language information in HTML document, |
| 1350 |
use <code>lang</code> attribute instead.</p> |
use <code>lang</code> attribute instead.</p> |
| 1372 |
</p> |
</p> |
| 1373 |
</div> |
</div> |
| 1374 |
|
|
|
<div class="section" id="in-XML:lang"><h3>The <code>lang</code> attribute is not |
|
|
allowed in XML document.</h3> |
|
|
<p>The HTML <code>lang</code> attribute is not allowed in |
|
|
XML document. The document is non-conforming.</p> |
|
|
|
|
|
<p>The <code>lang</code> attribute in <code>null</code> |
|
|
namespace for HTML elements is conforming <em>only</em> in |
|
|
HTML documents.</p> |
|
|
|
|
|
<p>To specify natural language information in XML document, |
|
|
use <code>xml:lang</code> attribute instead.</p> |
|
|
</div> |
|
|
|
|
| 1375 |
<div class="section" id="in-XML:noscript"><h3>A <code>noscript</code> element cannot be |
<div class="section" id="in-XML:noscript"><h3>A <code>noscript</code> element cannot be |
| 1376 |
used in XML document.</h3></div> |
used in XML document.</h3></div> |
| 1377 |
|
|
| 1378 |
|
<div class="section" id="in-XML:xml:lang"><h3>The <code>xml:lang</code> attribute in no namespace |
| 1379 |
|
is only allowed in HTML document.</h3></div> |
| 1380 |
|
|
| 1381 |
<div class="section" id="in-XML:xmlns"><h3>The <code>xmlns</code> attribute |
<div class="section" id="in-XML:xmlns"><h3>The <code>xmlns</code> attribute |
| 1382 |
in the <code>null</code> namespace is not allowed in |
in the <code>null</code> namespace is not allowed in |
| 1383 |
XHTML document. The document is non-conforming.</h3> |
XHTML document. The document is non-conforming.</h3> |
| 1388 |
static documents.</p> |
static documents.</p> |
| 1389 |
</div> |
</div> |
| 1390 |
|
|
| 1391 |
|
<div class="section" id="xml:lang-not-allowed"><h3>The <code>xml:lang</code> attribute is only allowed |
| 1392 |
|
when the <code>lang</code> attribute is specified.</h3></div> |
| 1393 |
|
|
| 1394 |
</section> |
</section> |
| 1395 |
|
|
| 1396 |
<section id="attribute-value-errors"> |
<section id="attribute-value-errors"> |
| 1523 |
|
|
| 1524 |
<div class="section" id="datetime:syntax-error"><h3>The attribute value is not a datetime.</h3></div> |
<div class="section" id="datetime:syntax-error"><h3>The attribute value is not a datetime.</h3></div> |
| 1525 |
|
|
| 1526 |
<div class="section" id="dateortime:syntax-error"><h3>The attribute value is not a date or |
<div class="section" id="dateortime:syntax-error"><h3>The value is not a date or time.</h3></div> |
|
time.</h3></div> |
|
| 1527 |
|
|
| 1528 |
<div class="section" id="enumerated:invalid"><h3>This attribute only allow a limited set of |
<div class="section" id="enumerated:invalid"><h3>This attribute only allow a limited set of |
| 1529 |
values and the specified value <code><var>{@}</var></code> is not one |
values and the specified value <code><var>{@}</var></code> is not one |
| 1578 |
<div class="section" id="duplicate-token"><h3>The token <code><var>{value}</var></code> |
<div class="section" id="duplicate-token"><h3>The token <code><var>{value}</var></code> |
| 1579 |
appears in the attribute value twice.</h3></div> |
appears in the attribute value twice.</h3></div> |
| 1580 |
|
|
| 1581 |
<div class="section" id="empty-attribute-value"><h3>The attribute value must not be empty.</h3></div> |
<div class="section" id="empty-attribute-value"><h3>The attribute value is empty.</h3></div> |
| 1582 |
|
|
| 1583 |
|
<div class="section" id="empty-style-sheet-title"><h3>The value of the <code>title</code> attribute |
| 1584 |
|
is empty.</h3> |
| 1585 |
|
<p>The <code>title</code> attribute value of the <code>link</code> |
| 1586 |
|
element that defines an alternate style sheet is an empty value.</p> |
| 1587 |
|
|
| 1588 |
|
<p>A <code>link</code> element whose <code>rel</code> attribute |
| 1589 |
|
is <code>alternate stylesheet</code> defines an alternate style sheet. |
| 1590 |
|
An alternate style sheet must be associated with a name using the |
| 1591 |
|
<code>title</code> attribute. The name cannot be empty.</p> |
| 1592 |
|
</div> |
| 1593 |
|
|
| 1594 |
<div class="section" id="float:out-of-range"><h3>The specified value is out of range.</h3></div> |
<div class="section" id="float:out-of-range"><h3>The specified value is out of range.</h3></div> |
| 1595 |
|
|
| 1744 |
<div class="section" id="XML-1.0-NCName:syntax-error"><h3>The specified value is not a legal XML Namespaces |
<div class="section" id="XML-1.0-NCName:syntax-error"><h3>The specified value is not a legal XML Namespaces |
| 1745 |
1.0 <code>NCName</code>.</h3></div> |
1.0 <code>NCName</code>.</h3></div> |
| 1746 |
|
|
| 1747 |
|
<div class="section" id="xml:lang-ne-lang"><h3>The value of the <code>xml:lang</code> attribute |
| 1748 |
|
is different from the value of the <code>lang</code> attribute.</h3> |
| 1749 |
|
<p>The value of the <code>xml:lang</code> attribute (either the |
| 1750 |
|
<code>lang</code> attribute in the <code>xml</code> (i.e. |
| 1751 |
|
<code>http://www.w3.org/XML/1998/namespace</code>) namespace, or |
| 1752 |
|
the <code>xml:lang</code> attribute in no namespace) for the element has |
| 1753 |
|
different value than that of the <code>lang</code> attribute in no |
| 1754 |
|
namespace.</p> |
| 1755 |
|
|
| 1756 |
|
<p>For historical reason, there are two attributes applicable to HTML |
| 1757 |
|
elements to specify language information of an element: <code>lang</code> |
| 1758 |
|
and <code>xml:lang</code>. In HTML documents, only <code>lang</code> |
| 1759 |
|
attribute in no namespace is allowed and take effect; the |
| 1760 |
|
<code>xml:lang</code> attribute in no namespace is ignored in HTML |
| 1761 |
|
documents. In XHTML documents, both <code>lang</code> and |
| 1762 |
|
<code>xml:lang</code> attributes are allowed.</p> |
| 1763 |
|
|
| 1764 |
|
<p>In general, <em>only the <code>lang</code> attribute</em> need to be |
| 1765 |
|
specified for an element.</p> |
| 1766 |
|
|
| 1767 |
|
<p>If both <code>lang</code> and <code>xml:lang</code> attributes are |
| 1768 |
|
specified on the same element, their values must be the same value.</p> |
| 1769 |
|
</div> |
| 1770 |
|
|
| 1771 |
</section> |
</section> |
| 1772 |
|
|
| 1773 |
<section id="table-model-errors"> |
<section id="table-model-errors"> |
| 1839 |
<code><var>{value}</var></code> is used.</h3></div> |
<code><var>{value}</var></code> is used.</h3></div> |
| 1840 |
|
|
| 1841 |
<div class="section" id="IMT:obsolete-subtype"><h3>An obsolete Internet Media Type |
<div class="section" id="IMT:obsolete-subtype"><h3>An obsolete Internet Media Type |
| 1842 |
<code><var>{value}</var></code> is used.</h3></div> |
<code><var>{value}</var></code> is used.</h3> |
| 1843 |
|
<p>The specified Internet Media Type is registered with its intended |
| 1844 |
|
usage as <i>OBSOLETE</i>.</p> |
| 1845 |
|
|
| 1846 |
|
<dl class="swtich"> |
| 1847 |
|
<dt>Media type <code>text/ecmascript</code></dt> |
| 1848 |
|
<dd>Media type <code>text/ecmascript</code> is obsoleted in |
| 1849 |
|
favor of <code>application/ecmascript</code>. Note that |
| 1850 |
|
<em><code>text/javascript</code></em> would be the better alternative |
| 1851 |
|
in many cases.</dd> |
| 1852 |
|
<dt>Media type <code>text/javascript</code></dt> |
| 1853 |
|
<dd>Media type <code>text/javascript</code> is obsoleted by |
| 1854 |
|
<abbr>IETF</abbr> with backward incompatible alternate |
| 1855 |
|
<code>application/javascript</code> for architectural |
| 1856 |
|
purity.<!-- @@ ref? --> Those who prefer reality to academic |
| 1857 |
|
purity <em>may ignore</em> this warning.</dd> |
| 1858 |
|
</dl> |
| 1859 |
|
</div> |
| 1860 |
|
|
| 1861 |
<div class="section" id="IMT:parameter-missing"><h3>Parameter <code><var>{text}</var></code> have to |
<div class="section" id="IMT:parameter-missing"><h3>Parameter <code><var>{text}</var></code> have to |
| 1862 |
be specified for the Internet Media Type |
be specified for the Internet Media Type |
| 1932 |
URI.</h3></div> |
URI.</h3></div> |
| 1933 |
|
|
| 1934 |
<div class="section" id="URL:address-format"><h3>URL host address format |
<div class="section" id="URL:address-format"><h3>URL host address format |
| 1935 |
<code><var>{value}</var></code> is not supported by the |
<code><var>{text}</var></code> is not defined.</h3></div> |
|
conformance checker.</h3></div> |
|
| 1936 |
|
|
| 1937 |
<div class="section" id="URL:default-port"><h3>Default port number should be omitted.</h3></div> |
<div class="section" id="URL:default-port"><h3>Default port number should be omitted.</h3></div> |
| 1938 |
|
|