| 63 |
</d:desc> |
</d:desc> |
| 64 |
</d:item> |
</d:item> |
| 65 |
|
|
| 66 |
|
<d:item name="bare stago" |
| 67 |
|
class="tokenize-error"> |
| 68 |
|
<d:message xml:lang="en">A <code><</code> character is not followed |
| 69 |
|
by tag name or by a <code>!</code> character.</d:message> |
| 70 |
|
<d:desc xml:lang="en"> |
| 71 |
|
<p>A <code><</code> (<code>U+003C</code> <code class="charname">LESS-THAN |
| 72 |
|
SIGN</code>) character which is not part of any markup appears |
| 73 |
|
in the input stream.</p> |
| 74 |
|
|
| 75 |
|
<p>The <code><</code> character as a data character must |
| 76 |
|
be escaped as: |
| 77 |
|
<pre class="html example"><code><lt;</code></pre> |
| 78 |
|
</p> |
| 79 |
|
</d:desc> |
| 80 |
|
</d:item> |
| 81 |
|
|
| 82 |
<d:item name="bare nero" |
<d:item name="bare nero" |
| 83 |
class="tokenize-error"> |
class="tokenize-error"> |
| 84 |
<d:message xml:lang="en">The decimal representation of the code position |
<d:message xml:lang="en">The decimal representation of the code position |
| 135 |
</d:desc> |
</d:desc> |
| 136 |
</d:item> |
</d:item> |
| 137 |
|
|
| 138 |
|
<d:item name="dash in comment" |
| 139 |
|
class="tokenize-error"> |
| 140 |
|
<d:message xml:lang="en">There is a <code>--</code> sequence |
| 141 |
|
in a comment.</d:message> |
| 142 |
|
<d:desc xml:lang="en"> |
| 143 |
|
<p>There is a <code>-</code> (<code>U+002D</code> |
| 144 |
|
<code class="charname">HYPHEN-MINUS</code>) character |
| 145 |
|
at the end of the comment or a <code>--</code> sequence |
| 146 |
|
in the comment. The document is non-conforming.</p> |
| 147 |
|
|
| 148 |
|
<p>Comments cannot contain a string <code>--</code>, as in XML. |
| 149 |
|
Unlike SGML, there cannot be more than one comments |
| 150 |
|
(where <i>comment</i> is an SGML term) in the comment |
| 151 |
|
declaration.</p> |
| 152 |
|
</d:desc> |
| 153 |
|
</d:item> |
| 154 |
|
|
| 155 |
<d:item name="duplicate attribute" |
<d:item name="duplicate attribute" |
| 156 |
class="tokenize-error"> |
class="tokenize-error"> |
| 157 |
<d:message xml:lang="en">There are two attributes with same name.</d:message> |
<d:message xml:lang="en">There are two attributes with same name.</d:message> |
| 183 |
</d:desc> |
</d:desc> |
| 184 |
</d:item> |
</d:item> |
| 185 |
|
|
| 186 |
|
|
| 187 |
|
<d:item name="pio" |
| 188 |
|
class="tokenize-error"> |
| 189 |
|
<d:message xml:lang="en">Processing instruction |
| 190 |
|
(<code><?<var>...</var>?></code>) cannot be used.</d:message> |
| 191 |
|
<d:desc xml:lang="en"> |
| 192 |
|
<p>Processing instructions (<code><?<var>...</var>?></code>), |
| 193 |
|
including XML declaration (<code><?xml <var>...</var>?></code>) |
| 194 |
|
and XML style sheet <abbr title="processing instruction">PI</abbr> |
| 195 |
|
(<code><xml-stylesheet <var>...</var>?></code>), are not allowed |
| 196 |
|
in the HTML syntax. The document is non-conforming.</p> |
| 197 |
|
|
| 198 |
|
<p>If it is necessary to embed a processing instruction |
| 199 |
|
in the HTML document, you must use the XML syntax instead.</p> |
| 200 |
|
|
| 201 |
|
<p>In the HTML syntax, XML declaration is not necessary.</p> |
| 202 |
|
|
| 203 |
|
<p>Instead of XML style sheet, |
| 204 |
|
<abbr title="processing instruction">PI</abbr>s, you must |
| 205 |
|
use the HTML <code>link</code> element whose <code>rel</code> |
| 206 |
|
attribute is set to <code>stylesheet</code> (or <code>alternate |
| 207 |
|
stylesheet</code> for an aleternate style sheet).</p> |
| 208 |
|
|
| 209 |
|
<p>Web browsers will parse processing instructions as bogus |
| 210 |
|
comments. Some legacy Web browsers, such as IE:mac and |
| 211 |
|
some mobile browsers, will display processing instructions |
| 212 |
|
as string.</p> |
| 213 |
|
</d:desc> |
| 214 |
|
</d:item> |
| 215 |
|
|
| 216 |
</section> |
</section> |
| 217 |
|
|
| 218 |
<section id="html5-parse-errors"> |
<section id="html5-parse-errors"> |
| 229 |
</d:desc> |
</d:desc> |
| 230 |
</d:item> |
</d:item> |
| 231 |
|
|
| 232 |
<d:item name="in table" |
<d:item name="DOCTYPE in the middle" |
| 233 |
|
class="parse-error"> |
| 234 |
|
<d:message xml:lang="en">A <code>DOCTYPE</code> appears after any |
| 235 |
|
element or data character has been seen.</d:message> |
| 236 |
|
<d:desc xml:lang="en"> |
| 237 |
|
<p>A <code>DOCTYPE</code> appears after any element or data character |
| 238 |
|
has been seen. The document is non-conforming.</p> |
| 239 |
|
|
| 240 |
|
<p>The <code>DOCTYPE</code> must be placed before any |
| 241 |
|
tag, reference, or data character. Only white space characters |
| 242 |
|
and comments can be inserted before the <code>DOCTYPE</code>.</p> |
| 243 |
|
</d:desc> |
| 244 |
|
</d:item> |
| 245 |
|
|
| 246 |
|
<d:item name="in a:a" |
| 247 |
|
class="parse-error"> |
| 248 |
|
<d:message xml:lang="en">Anchor cannot be nested.</d:message> |
| 249 |
|
<d:desc xml:lang="en"> |
| 250 |
|
<p>HTML <code>a</code> elements cannot be nested. |
| 251 |
|
The document is non-conforming.</p> |
| 252 |
|
|
| 253 |
|
<p>In the HTML syntax, a start tag of the <code>a</code> |
| 254 |
|
implies the end tag of any opening <code>a</code> element.</p> |
| 255 |
|
</d:desc> |
| 256 |
|
</d:item> |
| 257 |
|
|
| 258 |
|
<d:item name="in body" |
| 259 |
class="parse-error"> |
class="parse-error"> |
| 260 |
<d:message xml:lang="en">Tag <code><<var>$0</var>></code> |
<d:message xml:lang="en">Tag <code><<var>$0</var>></code> |
| 261 |
is not allowed in <code>table</code>.</d:message> |
is not allowed in a <code>body</code> element.</d:message> |
| 262 |
<d:desc xml:lang="en"> |
<d:desc xml:lang="en"> |
| 263 |
<p>The start or end tag of an element appears in <code>table</code>. |
<p>The start or end tag of an element, which |
| 264 |
|
cannot be a descendant of <code>body</code> element, appears |
| 265 |
|
in the input stream while the <code>body</code> element has been opened. |
| 266 |
The document is non-conforming.</p> |
The document is non-conforming.</p> |
| 267 |
|
</d:desc> |
| 268 |
|
</d:item> |
| 269 |
|
|
| 270 |
|
<d:item name="in head:head" |
| 271 |
|
class="parse-error"> |
| 272 |
|
<d:message xml:lang="en">Start tag <code><<var>head</var>></code> |
| 273 |
|
is not allowed in the <code>head</code> element.</d:message> |
| 274 |
|
<d:desc xml:lang="en"> |
| 275 |
|
<p>There is a start tag <code><head></code> in the |
| 276 |
|
<code><head></code> element. The document is non-conforming.</p> |
| 277 |
|
|
| 278 |
|
<p>In an HTML document there must not be more than |
| 279 |
|
one <code>head</code> element, therefore no more than one |
| 280 |
|
start tag <code><head></code> can appear in the input stream.</p> |
| 281 |
|
</d:desc> |
| 282 |
|
</d:item> |
| 283 |
|
|
| 284 |
|
<d:item name="in table" |
| 285 |
|
class="parse-error"> |
| 286 |
|
<d:message xml:lang="en">Tag <code><<var>$0</var>></code> |
| 287 |
|
is not allowed in a <code>table</code> element.</d:message> |
| 288 |
|
<d:desc xml:lang="en"> |
| 289 |
|
<p>The start or end tag of an element, which |
| 290 |
|
cannot be a child of <code>table</code> element, appears |
| 291 |
|
in the input stream while the <code>table</code> element has been opened |
| 292 |
|
but no other element has been opened. The document is non-conforming.</p> |
| 293 |
|
|
| 294 |
<p>In <code>table</code>, only table related elements |
<p>In <code>table</code>, only table related elements |
| 295 |
are allowed; any other element must be contained in |
are allowed; any other element must be contained in |
| 380 |
class="parse-error"> |
class="parse-error"> |
| 381 |
<d:message xml:lang="en">Element <code><var>$0</var></code> is not |
<d:message xml:lang="en">Element <code><var>$0</var></code> is not |
| 382 |
opened.</d:message> |
opened.</d:message> |
| 383 |
|
<d:desc> |
| 384 |
|
<p>An end tag appears though no element with the same name |
| 385 |
|
has been opened. The document is non-conforming.</p> |
| 386 |
|
|
| 387 |
|
<p>For any end tag in HTML document, there must be a |
| 388 |
|
corresponding start tag.</p> |
| 389 |
|
</d:desc> |
| 390 |
</d:item> |
</d:item> |
| 391 |
|
|
| 392 |
</section> |
</section> |
| 526 |
<p>The <code>xml:lang</code> attribute is not allowed in |
<p>The <code>xml:lang</code> attribute is not allowed in |
| 527 |
HTML document. The document is non-conforming.</p> |
HTML document. The document is non-conforming.</p> |
| 528 |
|
|
| 529 |
<p>The <code>xml:lang</code> attribute in <code>null</code> |
<p>The <code>lang</code> attribute in the <code>null</code> |
| 530 |
namespace for HTML elements is defined as conforming only for |
namespace for HTML elements is defined as conforming <em>only</em> for |
| 531 |
XML document.</p> |
XML document.</p> |
| 532 |
|
|
| 533 |
<p>To specify natural language information in HTML document, |
<p>To specify natural language information in HTML document, |
| 562 |
XML document. The document is non-conforming.</p> |
XML document. The document is non-conforming.</p> |
| 563 |
|
|
| 564 |
<p>The <code>lang</code> attribute in <code>null</code> |
<p>The <code>lang</code> attribute in <code>null</code> |
| 565 |
namespace for HTML elements is defined as conforming only for |
namespace for HTML elements is defined as conforming <em>only</em> for |
| 566 |
HTML document.</p> |
HTML document.</p> |
| 567 |
|
|
| 568 |
<p>To specify natural language information in XML document, |
<p>To specify natural language information in XML document, |
| 602 |
<!-- @@ <id=a xml:id=a>? --> |
<!-- @@ <id=a xml:id=a>? --> |
| 603 |
</d:item> |
</d:item> |
| 604 |
|
|
| 605 |
|
<d:item name="link type:bad context" |
| 606 |
|
class="attribute-value-error"> |
| 607 |
|
<d:message xml:lang="en">The link type <code><var>$0</var></code> |
| 608 |
|
cannot be specified for this element.</d:message> |
| 609 |
|
<d:desc xml:lang="en"> |
| 610 |
|
<p>The specified link type cannot be used for the element. |
| 611 |
|
The document is non-conforming.</p> |
| 612 |
|
|
| 613 |
|
<p>Link types are associated with limited set of elements. |
| 614 |
|
They cannot be used with other elements.</p> |
| 615 |
|
|
| 616 |
|
<p>For example, link type <code>bookmark</code> |
| 617 |
|
can be used with <code>a</code> or <code>area</code> element, |
| 618 |
|
while it cannot be used with <code>link</code> element.</p> |
| 619 |
|
</d:desc> |
| 620 |
|
</d:item> |
| 621 |
|
|
| 622 |
|
<d:item name="link type:non-conforming" |
| 623 |
|
class="attribute-value-error"> |
| 624 |
|
<d:message xml:lang="en">The link type <code><var>$0</var></code> |
| 625 |
|
is non-conforming.</d:message> |
| 626 |
|
<d:desc xml:lang="en"> |
| 627 |
|
<p>The specified link type is non-conforming. The entire document |
| 628 |
|
is non-conforming.</p> |
| 629 |
|
|
| 630 |
|
<p>For example, in place of non-conforming link type <code>copyright</code> |
| 631 |
|
you must use link type <code>license</code>.</p> |
| 632 |
|
</d:desc> |
| 633 |
|
</d:item> |
| 634 |
|
|
| 635 |
<d:item name="reserved browsing context name" |
<d:item name="reserved browsing context name" |
| 636 |
class="attribute-value-error"> |
class="attribute-value-error"> |
| 637 |
<d:message xml:lang="en">This browsing context name is reserved.</d:message> |
<d:message xml:lang="en">This browsing context name is reserved.</d:message> |
| 653 |
|
|
| 654 |
</section> |
</section> |
| 655 |
|
|
| 656 |
|
<section id="attribute-value-warnings"> |
| 657 |
|
<h2>Attribute Value Warnings</h2> |
| 658 |
|
|
| 659 |
|
<d:item name="link type:proposed" level="s" |
| 660 |
|
class="attribute-value-warning should"> |
| 661 |
|
<d:message xml:lang="en">Link type <code><var>$0</var></code> |
| 662 |
|
is proposed but not accepted yet; it <em>should not</em> be |
| 663 |
|
used until it has been accepted.</d:message> |
| 664 |
|
<d:desc> |
| 665 |
|
<p>The link type is in the <i>proposed</i> status; it |
| 666 |
|
<em>should not</em> be used until it has been |
| 667 |
|
accepted.</p> |
| 668 |
|
|
| 669 |
|
<p><strong>Warning</strong>: The data served to the |
| 670 |
|
conforming checker might be out of date; it might have already |
| 671 |
|
been accepted or rejected, depending on which the document |
| 672 |
|
might be conforming or non-conforming. See WHATWG Wiki |
| 673 |
|
for the latest information.</p> |
| 674 |
|
</d:desc> |
| 675 |
|
</d:item> |
| 676 |
|
|
| 677 |
|
</section> |
| 678 |
|
|
| 679 |
<section id="table-model-errors"> |
<section id="table-model-errors"> |
| 680 |
<h2>Table Model Errors</h2> |
<h2>Table Model Errors</h2> |
| 681 |
|
|
| 721 |
|
|
| 722 |
<d:item name="URI::syntax error" |
<d:item name="URI::syntax error" |
| 723 |
class="must" level="m"> |
class="must" level="m"> |
| 724 |
<d:message xml:lang="en">This string is not an IRI syntactically.</d:message> |
<d:message xml:lang="en">This string is syntactically not an IRI.</d:message> |
| 725 |
</d:item> |
</d:item> |
| 726 |
|
|
| 727 |
</section> |
</section> |
| 751 |
<code>/</code>.</d:message> |
<code>/</code>.</d:message> |
| 752 |
</d:item> |
</d:item> |
| 753 |
|
|
| 754 |
|
<d:item name="URI::lowercase hexadecimal digit" |
| 755 |
|
class="should" level="s"> |
| 756 |
|
<d:message xml:lang="en">Hexadecimal digit in percent-encoding |
| 757 |
|
should be in lowercase.</d:message> |
| 758 |
|
<d:desc xml:lang="en"> |
| 759 |
|
<p>The hexadecimal digit in percent-encoding string in the IRI |
| 760 |
|
is in lowercase. Though the IRI <em>is</em> conforming, |
| 761 |
|
it should be in uppercase.</p> |
| 762 |
|
</d:desc> |
| 763 |
|
</d:item> |
| 764 |
|
|
| 765 |
|
<d:item name="URI::percent-encoded unreserved" |
| 766 |
|
class="should" level="s"> |
| 767 |
|
<d:message xml:lang="en">An unreserved character is |
| 768 |
|
percent-encoded.</d:message> |
| 769 |
|
<d:desc xml:lang="en"> |
| 770 |
|
<p>An unreserved character is percent-encoded in the IRI. |
| 771 |
|
Though it <em>is</em> conforming, it should be in the |
| 772 |
|
decoded (or bare) form.</p> |
| 773 |
|
</d:desc> |
| 774 |
|
</d:item> |
| 775 |
|
|
| 776 |
</section> |
</section> |
| 777 |
|
|
| 778 |
<section id="unsupported-messages"> |
<section id="unsupported-messages"> |
| 800 |
|
|
| 801 |
<d:item name="link type" |
<d:item name="link type" |
| 802 |
class="unsupported" level="unsupported"> |
class="unsupported" level="unsupported"> |
| 803 |
<d:message xml:lang="en">The link type <code>$0</code> is not standardized |
<d:message xml:lang="en">The link type <code><var>$0</var></code> is not |
| 804 |
or registered at the time of the release of the conformance checker; |
standardized or registered at the time of the release of the conformance |
| 805 |
<em>it is non-conforming unless it has now been registered</em>.</d:message> |
checker; <em>it is non-conforming unless it has now been |
| 806 |
|
registered</em>.</d:message> |
| 807 |
<d:desc xml:lang="en"> |
<d:desc xml:lang="en"> |
| 808 |
<p>The <code>rel</code> attribute is defined as a list of link types. |
<p>The <code>rel</code> attribute is defined as a list of link types. |
| 809 |
Some common link types are defined in the HTML5 specification. |
Some common link types are defined in the HTML5 specification. |
| 818 |
</d:desc> |
</d:desc> |
| 819 |
</d:item> |
</d:item> |
| 820 |
|
|
| 821 |
|
<d:item name="event handler" |
| 822 |
|
class="unsupported" level="unsupported"> |
| 823 |
|
<d:message xml:lang="en">Conformance checking for event handler attribute |
| 824 |
|
is not supported; <em>it might or might not be conforming.</em></d:message> |
| 825 |
|
</d:item> |
| 826 |
|
|
| 827 |
|
<d:item name="language tag" |
| 828 |
|
class="unsupported" level="unsupported"> |
| 829 |
|
<d:message xml:lang="en">Conformance checking for language tag |
| 830 |
|
is not supported; <em>it might or might not be conforming.</em></d:message> |
| 831 |
|
</d:item> |
| 832 |
|
|
| 833 |
|
<d:item name="media query" |
| 834 |
|
class="unsupported" level="unsupported"> |
| 835 |
|
<d:message xml:lang="en">Conformance checking for media query |
| 836 |
|
is not supported; <em>it might or might not be conforming.</em></d:message> |
| 837 |
|
</d:item> |
| 838 |
|
|
| 839 |
|
<d:item name="script" |
| 840 |
|
class="unsupported" level="unsupported"> |
| 841 |
|
<d:message xml:lang="en">Conformance checking for script |
| 842 |
|
language <code><var>$0</var></code> is not supported; |
| 843 |
|
<em>it might or might not be conforming.</em></d:message> |
| 844 |
|
</d:item> |
| 845 |
|
|
| 846 |
|
<d:item name="style" |
| 847 |
|
class="unsupported" level="unsupported"> |
| 848 |
|
<d:message xml:lang="en">Conformance checking for style |
| 849 |
|
language <code><var>$0</var></code> is not supported; |
| 850 |
|
<em>it might or might not be conforming.</em></d:message> |
| 851 |
|
</d:item> |
| 852 |
|
|
| 853 |
</section> |
</section> |
| 854 |
|
|
| 855 |
<d:catalog> |
<d:catalog> |