89 |
<abbr>ASCII</abbr> for the purpose of <abbr>HTML</abbr> conformance.</p> |
<abbr>ASCII</abbr> for the purpose of <abbr>HTML</abbr> conformance.</p> |
90 |
</div> |
</div> |
91 |
|
|
92 |
<div class="section format-charset warning" id="w:charset-label-detected"><h3>While parsing the document as |
<div class="section " id="sniffing:chardet"><h3>Character encoding of this document is sniffed |
93 |
<code><var>$0</var></code>, a character encoding declaration specifying |
as <code><var>{text}</var></code> (Sniffed because no explicit specification |
94 |
character encoding as <code><var>$1</var></code> is found. The document |
for the character encoding of this document is found in the transfer |
95 |
|
procotol headers).</h3></div> |
96 |
|
|
97 |
|
<div class="section " id="sniffing:default"><h3>Character encoding of this document is defaulted |
98 |
|
to <code><var>{text}</var></code> because no explicit specification |
99 |
|
for the character encoding of this document is found in the transfer |
100 |
|
procotol headers.</h3></div> |
101 |
|
|
102 |
|
<div class="section " id="chardecode:fallback"><h3>Since no decoder for the document character |
103 |
|
encoding is found, decoder for the character encoding |
104 |
|
<code><var>{text}</var></code> is used. Checking results might be |
105 |
|
<em>wrong</em>.</h3></div> |
106 |
|
|
107 |
|
<div class="section " id="chardecode:no-error"><h3>Conformance error checking for the character |
108 |
|
encoding <code><var>{text}</var></code> is not supported.</h3></div> |
109 |
|
|
110 |
|
<div class="section " id="charset-label:matching"><h3>Sniffed character encoding |
111 |
|
<code><var>{text}</var></code> is same as the character encoding specified |
112 |
|
in the character encoding declaration. This is <em>not</em> an |
113 |
|
error.</h3></div> |
114 |
|
|
115 |
|
<div class="section format-charset warning" id="charset-label-detected"><h3>While parsing the document as |
116 |
|
<code><var>{text}</var></code>, a character encoding declaration specifying |
117 |
|
a different character encoding is found. The document |
118 |
is reparsed.</h3> |
is reparsed.</h3> |
119 |
<p>While parsing a document in a character encoding, |
<p>While parsing a document in a character encoding, |
120 |
a character encoding declaration which declares the character |
a character encoding declaration which declares the character |
139 |
<li>Use <code>UTF-8</code>.</li> |
<li>Use <code>UTF-8</code>.</li> |
140 |
</ul> |
</ul> |
141 |
</div> |
</div> |
142 |
|
|
143 |
|
<div class="section " id="NULL"><h3>The <code class="charname">NULL</code> character |
144 |
|
is not allowed.</h3></div> |
145 |
|
|
146 |
|
<div class="section " id="control-char"><h3>Code point <code><var>{text}</var></code> is |
147 |
|
not allowed.</h3></div> |
148 |
|
|
149 |
</section> |
</section> |
150 |
|
|
151 |
<section id="html5-tokenize-error"> |
<section id="html5-tokenize-error"> |
172 |
element.</p> |
element.</p> |
173 |
</div> |
</div> |
174 |
|
|
175 |
|
<div class="section tokenize-error" id="bad-attribute-name"><h3>Attribute name cannot contain characters |
176 |
|
<code>"</code>, <code>'</code>, and <code>=</code>.</h3></div> |
177 |
|
|
178 |
|
<div class="section tokenize-error" id="bad-attribute-value"><h3>Attribute value must be quoted by <code>"</code> |
179 |
|
or <code>'</code> if it contains a <code>"</code>, <code>'</code>, or |
180 |
|
<code>=</code> character.</h3></div> |
181 |
|
|
182 |
<div class="section tokenize-error" id="bare-ero"><h3>The <code>&</code> character must |
<div class="section tokenize-error" id="bare-ero"><h3>The <code>&</code> character must |
183 |
be escaped as <code class="html example">&amp;</code>.</h3> |
be escaped as <code class="html example">&amp;</code>.</h3> |
184 |
<p>An <code>&</code> character which |
<p>An <code>&</code> character which |
350 |
</p> |
</p> |
351 |
</div> |
</div> |
352 |
|
|
353 |
|
<div class="section tokenize-error" id="C1-character-reference"><h3>Character reference to |
354 |
|
<code><var>{text}</var></code> is not allowed.</h3></div> |
355 |
|
|
356 |
|
<div class="section tokenize-error" id="CR-character-reference"><h3>Character reference to |
357 |
|
<code>U+000D</code> (<code class="charname">CARRIAGE RETURN</code>) |
358 |
|
is not allowed.</h3></div> |
359 |
|
|
360 |
<div class="section tokenize-error" id="dash-in-comment"><h3>There is a <code>--</code> sequence |
<div class="section tokenize-error" id="dash-in-comment"><h3>There is a <code>--</code> sequence |
361 |
in a comment.</h3> |
in a comment.</h3> |
362 |
<p>There is a <code>-</code> (<code>U+002D</code> |
<p>There is a <code>-</code> (<code>U+002D</code> |
371 |
</div> |
</div> |
372 |
|
|
373 |
<div class="section tokenize-error" id="duplicate-attribute"><h3>There are two attributes with name |
<div class="section tokenize-error" id="duplicate-attribute"><h3>There are two attributes with name |
374 |
<code><var>$0</var></code>.</h3> |
<code><var>{text}</var></code>.</h3> |
375 |
<p>There are more than one attributes with the same |
<p>There are more than one attributes with the same |
376 |
name in a tag. The document is non-conforming.</p> |
name in a tag. The document is non-conforming.</p> |
377 |
|
|
379 |
Use <code>img</code> element with animation GIF instead.</p> |
Use <code>img</code> element with animation GIF instead.</p> |
380 |
</div> |
</div> |
381 |
|
|
382 |
|
<div class="section tokenize-error" id="empty-start-tag"><h3>Empty start tag (<code><></code>) is not |
383 |
|
allowed.</h3></div> |
384 |
|
|
385 |
|
<div class="section tokenize-error" id="empty-end-tag"><h3>Empty end tag (<code></></code>) is not |
386 |
|
allowed.</h3></div> |
387 |
|
|
388 |
|
<div class="section tokenize-error" id="end-tag-attribute"><h3>End tag cannot have attributes.</h3></div> |
389 |
|
|
390 |
|
<div class="section tokenize-error" id="invalid-character-reference"><h3>Character reference to |
391 |
|
<code><var>{text}</var></code> is not allowed.</h3></div> |
392 |
|
|
393 |
<div class="section tokenize-error" id="nestc"><h3>Polytheistic slash (<code>/></code>) cannot be |
<div class="section tokenize-error" id="nestc"><h3>Polytheistic slash (<code>/></code>) cannot be |
394 |
used for this element.</h3> |
used for this element.</h3> |
395 |
<p>Polytheistic slash (<code>/></code>) must not be used |
<p>Polytheistic slash (<code>/></code>) must not be used |
434 |
no effect in HTML.</p> |
no effect in HTML.</p> |
435 |
</div> |
</div> |
436 |
|
|
437 |
|
<div class="section tokenize-error" id="no-DOCTYPE-name"><h3>After the string <code><!DOCTYPE </code>, the |
438 |
|
document type name must be specified.</h3></div> |
439 |
|
|
440 |
|
<div class="section tokenize-error" id="no-PUBLIC-literal"><h3>After the keyword <code>PUBLIC</code>, no |
441 |
|
oublic identifier is specified.</h3></div> |
442 |
|
|
443 |
|
<div class="section tokenize-error" id="no-refc"><h3>Character reference must be closed by a |
444 |
|
<code>;</code> character.</h3></div> |
445 |
|
|
446 |
|
<div class="section tokenize-error" id="no-space-before-DOCTYPE-name"><h3>After the string <code><!DOCTYPE</code>, there |
447 |
|
must be at least a white space character before the document type |
448 |
|
name.</h3></div> |
449 |
|
|
450 |
|
<div class="section tokenize-error" id="no-space-between-attributes"><h3>Attributes must be separeted by at least a |
451 |
|
white space character.</h3></div> |
452 |
|
|
453 |
|
<div class="section tokenize-error" id="no-SYSTEM-literal"><h3>After the keyword <code>SYSTEM</code>, no |
454 |
|
system identifier is specified.</h3></div> |
455 |
|
|
456 |
<div class="section tokenize-error" id="pio"><h3>Processing instruction |
<div class="section tokenize-error" id="pio"><h3>Processing instruction |
457 |
(<code><?<var>...</var>></code>) cannot be used.</h3> |
(<code><?<var>...</var>></code>) is not allowed in HTML |
458 |
|
document.</h3> |
459 |
<p>Processing instructions (<code><?<var>...</var>?></code>), |
<p>Processing instructions (<code><?<var>...</var>?></code>), |
460 |
including XML declaration (<code><?xml <var>...</var>?></code>) |
including XML declaration (<code><?xml <var>...</var>?></code>) |
461 |
and XML style sheet <abbr title="processing instruction">PI</abbr> |
and XML style sheet <abbr title="processing instruction">PI</abbr> |
503 |
as string.</p> |
as string.</p> |
504 |
</div> |
</div> |
505 |
|
|
506 |
|
<div class="section tokenize-error" id="string-after-DOCTYPE-name"><h3>There is a bogus string after the document type |
507 |
|
name.</h3></div> |
508 |
|
|
509 |
|
<div class="section tokenize-error" id="string-after-PUBLIC"><h3>There is a bogus string after the keyword |
510 |
|
<code>PUBLIC</code>.</h3></div> |
511 |
|
|
512 |
|
<div class="section tokenize-error" id="string-after-PUBLIC-literal"><h3>There is a bogus string after the public |
513 |
|
identifier.</h3></div> |
514 |
|
|
515 |
|
<div class="section tokenize-error" id="string-after-SYSTEM"><h3>There is a bogus string after the keyword |
516 |
|
<code>SYSTEM</code>.</h3></div> |
517 |
|
|
518 |
|
<div class="section tokenize-error" id="string-after-SYSTEM-literal"><h3>There is a bogus string after the system |
519 |
|
identifier.</h3></div> |
520 |
|
|
521 |
|
<div class="section tokenize-error" id="unclosed-attribute-value"><h3>Attribute value is not closed by a quotation |
522 |
|
mark.</h3></div> |
523 |
|
|
524 |
|
<div class="section tokenize-error" id="unclosed-comment"><h3>Comment is not closed by a string |
525 |
|
<code>--></code>.</h3></div> |
526 |
|
|
527 |
|
<div class="section tokenize-error" id="unclosed-DOCTYPE"><h3>The <code>DOCTYPE</code> is not closed by a |
528 |
|
<code>></code> character.</h3></div> |
529 |
|
|
530 |
|
<div class="section tokenize-error" id="unclosed-PUBLIC-literal"><h3>The public identifier literal is not closed by a |
531 |
|
quotation mark.</h3></div> |
532 |
|
|
533 |
|
<div class="section tokenize-error" id="unclosed-SYSTEM-literal"><h3>The system identifier literal is not closed by a |
534 |
|
quotation mark.</h3></div> |
535 |
|
|
536 |
|
<div class="section tokenize-error" id="unclosed-tag"><h3>Tag is not closed by a <code>></code> |
537 |
|
character.</h3></div> |
538 |
|
|
539 |
</section> |
</section> |
540 |
|
|
541 |
<section id="html5-parse-errors"> |
<section id="html5-parse-errors"> |
542 |
<h2>HTML5 Parse Errors in Tree Construction Stage</h2> |
<h2>HTML5 Parse Errors in Tree Construction Stage</h2> |
543 |
|
|
544 |
<div class="section parse-error" id="after-head"><h3>The <code><var>$0</var></code> element cannot be |
<div class="section parse-error" id="after-body"><h3>Start tag <code><<var>{text}</var>></code> is |
545 |
inserted between <code>head</code> and <code>body</code> elements.</h3> |
not allowed after the <code>body</code> is closed.</h3></div> |
546 |
|
|
547 |
|
<div class="section parse-error" id="after-body:/"><h3>End tag <code></<var>{text}</var>></code> is |
548 |
|
not allowed after the <code>body</code> is closed.</h3></div> |
549 |
|
|
550 |
|
<div class="section parse-error" id="after-body:#text"><h3>Non‐white‐space characters are not allowed |
551 |
|
after the <code>body</code> is closed.</h3></div> |
552 |
|
|
553 |
|
<div class="section parse-error" id="after-frameset"><h3>Start tag <code><<var>{text}</var>></code> is |
554 |
|
not allowed after the <code>frameset</code> is closed.</h3></div> |
555 |
|
|
556 |
|
<div class="section parse-error" id="after-frameset:/"><h3>End tag <code></<var>{text}</var>></code> is |
557 |
|
not allowed after the <code>frameset</code> is closed.</h3></div> |
558 |
|
|
559 |
|
<div class="section parse-error" id="after-frameset:#text"><h3>Non‐white‐space characters are not allowed |
560 |
|
after the <code>frame</code> is closed.</h3></div> |
561 |
|
|
562 |
|
<div class="section parse-error" id="after-head"><h3>The <code><var>{text}</var></code> element cannot be |
563 |
|
inserted between <code>head</code> and <code>body</code> |
564 |
|
elements.</h3> |
565 |
<p>A start tag appears after the <code>head</code> element is closed |
<p>A start tag appears after the <code>head</code> element is closed |
566 |
but before the <code>body</code> element is opened. |
but before the <code>body</code> element is opened. |
567 |
The document is non-conforming.</p> |
The document is non-conforming.</p> |
568 |
</div> |
</div> |
569 |
|
|
570 |
<div class="section parse-error" id="DOCTYPE-in-the-middle"><h3>A <code>DOCTYPE</code> appears after any |
<div class="section parse-error" id="after-html"><h3>Start tag <code><<var>{text}</var>></code> is |
571 |
element or data character has been seen.</h3> |
not allowed after the <code>html</code> is closed.</h3></div> |
572 |
<p>A <code>DOCTYPE</code> appears after any element or data character |
|
573 |
has been seen. The document is non-conforming.</p> |
<div class="section parse-error" id="after-html:/"><h3>End tag <code></<var>{text}</var>></code> is |
574 |
|
not allowed after the <code>html</code> is closed.</h3></div> |
575 |
<p>The <code>DOCTYPE</code> must be placed before any |
|
576 |
tag, reference, or data character. Only white space characters |
<div class="section parse-error" id="after-html:#text"><h3>Non‐white‐space characters are not allowed |
577 |
and comments can be inserted before the <code>DOCTYPE</code>.</p> |
after the <code>html</code> is closed.</h3></div> |
578 |
</div> |
|
579 |
|
<div class="section parse-error" id="image"><h3>The <code>image</code> element is |
580 |
|
obsolete.</h3></div> |
581 |
|
|
582 |
<div class="section parse-error" id="in-a:a"><h3>Anchor cannot be nested.</h3> |
<div class="section parse-error" id="in-a:a"><h3>Anchor cannot be nested.</h3> |
583 |
<p>HTML <code>a</code> elements cannot be nested. |
<p>HTML <code>a</code> elements cannot be nested. |
587 |
implies the end tag of any opening <code>a</code> element.</p> |
implies the end tag of any opening <code>a</code> element.</p> |
588 |
</div> |
</div> |
589 |
|
|
590 |
<div class="section parse-error" id="in-body"><h3>Tag <code><<var>$0</var>></code> |
<div class="section parse-error" id="in-body"><h3>Start tag <code><<var>{text}</var>></code> |
591 |
is not allowed in the <code>body</code> element.</h3> |
is not allowed in the <code>body</code> element.</h3> |
592 |
<p>The start or end tag of an element, which |
<p>The start or end tag of an element, which |
593 |
cannot be a descendant of <code>body</code> element, appears |
cannot be a descendant of <code>body</code> element, appears |
595 |
The document is non-conforming.</p> |
The document is non-conforming.</p> |
596 |
</div> |
</div> |
597 |
|
|
598 |
|
<div class="section parse-error" id="in-body:#eof"><h3>Some element is not closed before the end of |
599 |
|
file.</h3></div> |
600 |
|
|
601 |
|
<div class="section parse-error" id="in-button:button"><h3>The <code>button</code> element cannot be |
602 |
|
nested.</h3></div> |
603 |
|
|
604 |
|
<div class="section parse-error" id="in-CDATA:#eof"><h3>Element is not closed before the end of |
605 |
|
file.</h3></div> |
606 |
|
|
607 |
|
<div class="section parse-error" id="in-form:form"><h3>Start tag <code><form></code> is |
608 |
|
not allowed in a <code>form</code> element.</h3></div> |
609 |
|
|
610 |
|
<div class="section parse-error" id="in-frameset"><h3>Start tag <code><<var>{text}</var>></code> is |
611 |
|
not allowed in a <code>framset</code> element.</h3></div> |
612 |
|
|
613 |
|
<div class="section parse-error" id="in-frameset:/"><h3>End tag <code></<var>{text}</var>></code> is |
614 |
|
not allowed in a <code>frameset</code> element.</h3></div> |
615 |
|
|
616 |
|
<div class="section parse-error" id="in-frameset:#text"><h3>Non‐white‐space characters are not allowed |
617 |
|
in a <code>frameset</code> element.</h3></div> |
618 |
|
|
619 |
<div class="section parse-error" id="in-head:head"><h3>Start tag <code><head></code> |
<div class="section parse-error" id="in-head:head"><h3>Start tag <code><head></code> |
620 |
is not allowed in the <code>head</code> element.</h3> |
is not allowed in the <code>head</code> element.</h3> |
621 |
<p>There is a start tag <code><head></code> in the |
<p>There is a start tag <code><head></code> in the |
626 |
start tag <code><head></code> can appear in the input stream.</p> |
start tag <code><head></code> can appear in the input stream.</p> |
627 |
</div> |
</div> |
628 |
|
|
629 |
<div class="section parse-error" id="in-table"><h3>Tag <code><<var>$0</var>></code> |
<div class="section parse-error" id="in-html:#DOCTYPE"><h3>A <code>DOCTYPE</code> appears after any |
630 |
|
element or data character has been seen.</h3> |
631 |
|
<p>A <code>DOCTYPE</code> appears after any element or data character |
632 |
|
has been seen. The document is non-conforming.</p> |
633 |
|
|
634 |
|
<p>The <code>DOCTYPE</code> must be placed before any |
635 |
|
tag, reference, or data character. Only white space characters |
636 |
|
and comments can be inserted before the <code>DOCTYPE</code>.</p> |
637 |
|
</div> |
638 |
|
|
639 |
|
<div class="section parse-error" id="in-nobr:nobr"><h3>The <code>nobr</code> element cannot be |
640 |
|
nested.</h3></div> |
641 |
|
|
642 |
|
<div class="section parse-error" id="in-noscript"><h3>The <code><var>{text}</var></code> element is not |
643 |
|
allowed in a <code>noscript</code> element in the |
644 |
|
<code>head</code> element.</h3></div> |
645 |
|
|
646 |
|
<div class="section parse-error" id="in-noscript:/"><h3>An end tag <code></<var>{text}</var>></code> |
647 |
|
appers before the <code>noscript</code> element is closed.</h3></div> |
648 |
|
|
649 |
|
<div class="section parse-error" id="in-noscript:#eof"><h3>A <code>noscript</code> element is not closed |
650 |
|
before the end of file.</h3></div> |
651 |
|
|
652 |
|
<div class="section parse-error" id="in-noscript:#text"><h3>Non‐white‐space characters are not allowed |
653 |
|
in a <code>noscript</code> element in the <code>head</code> |
654 |
|
element.</h3></div> |
655 |
|
|
656 |
|
<div class="section parse-error" id="in-PCDATA:#eof"><h3>Element is not closed before the end of |
657 |
|
file.</h3></div> |
658 |
|
|
659 |
|
<div class="section parse-error" id="in-select"><h3>Start tag <code><<var>{text}</var>></code> |
660 |
|
is not allowed in a <code>select</code> element.</h3></div> |
661 |
|
|
662 |
|
<div class="section parse-error" id="in-select:/"><h3>End tag <code></<var>{text}</var>></code> |
663 |
|
is not allowed in a <code>select</code> element.</h3></div> |
664 |
|
|
665 |
|
<div class="section parse-error" id="in-table"><h3>Start tag <code><<var>{text}</var>></code> |
666 |
is not allowed in a <code>table</code> element.</h3> |
is not allowed in a <code>table</code> element.</h3> |
667 |
<p>The start or end tag of an element, which |
<p>The start or end tag of an element, which |
668 |
cannot be a child of <code>table</code> element, appears |
cannot be a child of <code>table</code> element, appears |
676 |
a table caption.</p> |
a table caption.</p> |
677 |
</div> |
</div> |
678 |
|
|
679 |
<div class="section parse-error" id="in-table:#character"><h3>Data character is not allowed in |
<div class="section parse-error" id="in-table:/"><h3>End tag <code></<var>{text}</var>></code> |
680 |
<code>table</code>.</h3> |
is not allowed in a <code>table</code> element.</h3></div> |
681 |
<p>A data character appears in <code>table</code>. The document |
|
682 |
is non-conforming.</p> |
<div class="section parse-error" id="in-table:#text"><h3>Non‐white‐space character is not allowed within |
683 |
|
the <code>table</code> element, outside of the caption and cells.</h3> |
684 |
|
<p>A non‐white‐space character appears in <code>table</code>. |
685 |
|
The document is non-conforming.</p> |
686 |
|
|
687 |
<p>In <code>table</code>, only table related elements |
<p>In <code>table</code>, only table related elements |
688 |
are allowed; any other element and data character must be contained in |
are allowed; any other element and data character must be contained in |
691 |
a table caption.</p> |
a table caption.</p> |
692 |
</div> |
</div> |
693 |
|
|
694 |
|
<div class="section parse-error" id="isindex"><h3>The <code>isindex</code> element is |
695 |
|
obsolete.</h3></div> |
696 |
|
|
697 |
<div class="section parse-error" id="missing-start-tag:tr"><h3>Start tag of <code>tr</code> |
<div class="section parse-error" id="missing-start-tag:tr"><h3>Start tag of <code>tr</code> |
698 |
element is missing.</h3> |
element is missing.</h3> |
699 |
<p>Start tag of a <code>tr</code> element, which is <em>not</em> |
<p>Start tag of a <code>tr</code> element, which is <em>not</em> |
721 |
allowed in HTML document.</p> |
allowed in HTML document.</p> |
722 |
</div> |
</div> |
723 |
|
|
724 |
<div class="section parse-error" id="not-closed"><h3>Element <code><var>$0</var></code> is not |
<div class="section parse-error" id="not-closed"><h3>Element <code><var>{text}</var></code> is not |
725 |
closed.</h3> |
closed.</h3> |
726 |
<p>End tag of an element is not found before, for example, |
<p>End tag of an element is not found before, for example, |
727 |
an end tag of another element appears or |
an end tag of another element appears or |
778 |
HTML document (roughly) as defined in HTML5.</p> |
HTML document (roughly) as defined in HTML5.</p> |
779 |
</div> |
</div> |
780 |
|
|
781 |
<div class="section parse-error" id="unmatched-end-tag"><h3>Element <code><var>$0</var></code> is not |
<div class="section parse-error" id="start-tag-not-allowed"><h3>Start tag <code><<var>{text}</var>></code> is |
782 |
|
not allowed here.</h3></div> |
783 |
|
|
784 |
|
<div class="section parse-error" id="unmatched-end-tag"><h3>Element <code><var>{text}</var></code> is not |
785 |
opened.</h3> |
opened.</h3> |
786 |
<p>An end tag appears though no element with the same name |
<p>An end tag appears though no element with the same name |
787 |
has been opened. The document is non-conforming.</p> |
has been opened. The document is non-conforming.</p> |