| 11 |
<body> |
<body> |
| 12 |
<h1>Description of Errors</h1> |
<h1>Description of Errors</h1> |
| 13 |
|
|
| 14 |
|
<section id="html5-character-encoding"> |
| 15 |
|
<h2>HTML5 Character Encoding Errors</h2> |
| 16 |
|
|
| 17 |
|
<d:item name="character encoding" class="format-charset must" level="m"> |
| 18 |
|
<d:message xml:lang="en">Character encoding <code><var>$0</var></code> |
| 19 |
|
is not allowed for <abbr>HTML</abbr> document.</d:message> |
| 20 |
|
<d:desc xml:lang="en"> |
| 21 |
|
<p>The character encoding used for the document is not allowed |
| 22 |
|
for <abbr>HTML</abbr> document. The document is non‐conforming.</p> |
| 23 |
|
</d:desc> |
| 24 |
|
</d:item> |
| 25 |
|
|
| 26 |
|
<d:item name="character encoding" class="format-charset should" |
| 27 |
|
level="s"> |
| 28 |
|
<d:message xml:lang="en">Character encoding <code><var>$0</var></code> |
| 29 |
|
should not be used for <abbr>HTML</abbr> document.</d:message> |
| 30 |
|
<d:desc xml:lang="en"> |
| 31 |
|
<p>The character encoding used for the document is not recommended |
| 32 |
|
for <abbr>HTML</abbr> document. The document is non‐conforming |
| 33 |
|
unless there is any good reason to use that encoding.</p> |
| 34 |
|
</d:desc> |
| 35 |
|
</d:item> |
| 36 |
|
|
| 37 |
|
<d:item name="character encoding" class="format-charset warning" |
| 38 |
|
level="w"> |
| 39 |
|
<d:message xml:lang="en">Use of UTF-8 is encouraged.</d:message> |
| 40 |
|
<d:desc xml:lang="en"> |
| 41 |
|
<p>Use of UTF-8 as the character encoding of the document is encouraged, |
| 42 |
|
though the use of another character encoding is conforming.</p> |
| 43 |
|
</d:desc> |
| 44 |
|
</d:item> |
| 45 |
|
|
| 46 |
|
<d:item name="character encoding" class="format-charset unsupported" |
| 47 |
|
level="unsupported"> |
| 48 |
|
<d:message xml:lang="en">Conformance for character encoding requirements |
| 49 |
|
cannot be checked.</d:message> |
| 50 |
|
<d:desc xml:lang="en"> |
| 51 |
|
<p>The conformance checker cannot detect whether the input document |
| 52 |
|
met the requirements on character encoding, since the document |
| 53 |
|
is not inputed as a serialized byte sequence. The document is |
| 54 |
|
not conforming if it is not encoded in an appropriate character |
| 55 |
|
encoding with appropriate labeling.</p> |
| 56 |
|
</d:desc> |
| 57 |
|
</d:item> |
| 58 |
|
|
| 59 |
|
<d:item name="no character encoding declaration" class="format-charset error" |
| 60 |
|
level="m"> |
| 61 |
|
<d:message xml:lang="en">There is no character encoding |
| 62 |
|
declaration.</d:message> |
| 63 |
|
<d:desc xml:lang="en"> |
| 64 |
|
<p>The document does not contain a character encoding |
| 65 |
|
declaration. Unless the character encoding is explicitly |
| 66 |
|
specified in lower‐level protocol, e.g. in <abbr>HTTP</abbr>, |
| 67 |
|
or is implied by <abbr>BOM</abbr>, there must be a character |
| 68 |
|
encoding declaration. The document is non‐conforming.</p> |
| 69 |
|
|
| 70 |
|
<p>The long character encoding declaration syntax |
| 71 |
|
<code class="html bad example"><meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"></code> |
| 72 |
|
is obsolete. The new syntax is:</p> |
| 73 |
|
<pre class="html example"><code><meta charset="<var>charset-name</var>"></code></pre> |
| 74 |
|
|
| 75 |
|
<p>Note that the <code>encoding</code> declaration in <abbr>XML</abbr> |
| 76 |
|
declaration has no effect for <abbr>HTML</abbr> document.</p> |
| 77 |
|
</d:desc> |
| 78 |
|
</d:item> |
| 79 |
|
|
| 80 |
|
<d:item name="non ascii superset" class="format-charset error" |
| 81 |
|
level="m"> |
| 82 |
|
<d:message xml:lang="en">No character encoding metadata is found |
| 83 |
|
in lower‐level protocol nor is there <abbr>BOM</abbr>, while |
| 84 |
|
character encoding <code><var>$0</var></code> |
| 85 |
|
is not a superset of <abbr>ASCII</abbr>.</d:message> |
| 86 |
|
<d:desc xml:lang="en"> |
| 87 |
|
<p>The document is not labeled with character encoding name |
| 88 |
|
in lower‐level protocol, e.g. in <abbr>HTTP</abbr>, and |
| 89 |
|
the document is not begin with <abbr>BOM</abbr>. In addition, |
| 90 |
|
the character encoding of the document is not a superset of |
| 91 |
|
<abbr>ASCII</abbr>. The document is non‐conforming.</p> |
| 92 |
|
|
| 93 |
|
<p>Unless there is a <abbr>BOM</abbr>, the character encoding |
| 94 |
|
for the document must be specified in e.g. <abbr>HTTP</abbr>‐level, |
| 95 |
|
as:</p> |
| 96 |
|
<pre class="http example"><code>Content-Type: text/html; charset=<var>charset-name</var></code></pre> |
| 97 |
|
|
| 98 |
|
<p>Existence of <abbr>HTML</abbr> character encoding declaration, i.e. |
| 99 |
|
<code class="html example"><meta charset="<var>charset-name</var>"></code>, |
| 100 |
|
does not allow to omit <code>charset</code> parameter |
| 101 |
|
for <abbr>HTML</abbr> document encoded in non‐<abbr>ASCII</abbr> |
| 102 |
|
compatible encoding.</p> |
| 103 |
|
|
| 104 |
|
<p>Character encodings <code>Shift_JIS</code>, <code>Windows-31J</code>, |
| 105 |
|
and <code>ISO-2022-JP</code> are <em>not</em> a superset of |
| 106 |
|
<abbr>ASCII</abbr> for the purpose of <abbr>HTML</abbr> conformance.</p> |
| 107 |
|
</d:desc> |
| 108 |
|
</d:item> |
| 109 |
|
|
| 110 |
|
<d:item name="charset label detected" class="format-charset warning" |
| 111 |
|
level="w"> |
| 112 |
|
<d:message xml:lang="en">While parsing the document as |
| 113 |
|
<code><var>$0</var></code>, a character encoding declaration specifying |
| 114 |
|
character encoding as <code><var>$1</var></code> is found. The document |
| 115 |
|
is reparsed.</d:message> |
| 116 |
|
<d:desc xml:lang="en"> |
| 117 |
|
<p>While parsing a document in a character encoding, |
| 118 |
|
a character encoding declaration which declares the character |
| 119 |
|
encoding of the document as another character encoding is found. |
| 120 |
|
The occurence of this warning itself does not make the document |
| 121 |
|
non‐conforming. However, the failure of the first attempt to |
| 122 |
|
to detect the character encoding might be the result of non‐conformance |
| 123 |
|
of the document.</p> |
| 124 |
|
|
| 125 |
|
<p>The document will be reparsed from the beginning. Some error |
| 126 |
|
or warning might be reported again.</p> |
| 127 |
|
|
| 128 |
|
<p>These are suggestions to avoid this warning:</p> |
| 129 |
|
<ul> |
| 130 |
|
<li>Specify <code>charset</code> parameter in the <code>Content-Type</code> |
| 131 |
|
field in the <abbr>HTTP</abbr> header, as: |
| 132 |
|
<pre class="HTTP example"><code>Content-Type: text/html; charset="<var>charset-name</var>"</code></pre></li> |
| 133 |
|
<li>Put the character encoding declaration |
| 134 |
|
(<code class="html example"><meta charset="<var>charset-name</var>"></code>) |
| 135 |
|
just after <code class="html example"><head></code> start tag.</li> |
| 136 |
|
<li>Use <code>UTF-8</code>.</li> |
| 137 |
|
</ul> |
| 138 |
|
</d:desc> |
| 139 |
|
</d:item> |
| 140 |
|
</section> |
| 141 |
|
|
| 142 |
<section id="html5-tokenize-error"> |
<section id="html5-tokenize-error"> |
| 143 |
<h2>HTML5 Parse Errors in Tokenization Stage</h2> |
<h2>HTML5 Parse Errors in Tokenization Stage</h2> |
| 144 |
|
|
| 1017 |
<section id="attribute-value-errors"> |
<section id="attribute-value-errors"> |
| 1018 |
<h2>Attribute Value Errors</h2> |
<h2>Attribute Value Errors</h2> |
| 1019 |
|
|
| 1020 |
|
<d:item name="charset:not registered" class="attribute-value-warning warning" |
| 1021 |
|
level="w"> |
| 1022 |
|
<d:message xml:lang="en">Character encoding name <code><var>$0</var></code> |
| 1023 |
|
is not registered.</d:message> |
| 1024 |
|
<d:desc xml:lang="en"> |
| 1025 |
|
<p>The specified character encoding name is not registered to |
| 1026 |
|
<abbr>IANA</abbr>. Use of registered character encoding name |
| 1027 |
|
is a good practice to facilitate interoperability.</p> |
| 1028 |
|
|
| 1029 |
|
<dl class="switch"> |
| 1030 |
|
<dt><code>EUC-TW</code></dt> |
| 1031 |
|
<dd><code>EUC-TW</code> is not registered. Unfortunately, there |
| 1032 |
|
is no registered name for that character encoding. Use |
| 1033 |
|
Big5 encoding with character encoding name <code>Big5</code> |
| 1034 |
|
if it is enough to represent the document.</dd> |
| 1035 |
|
<dt><code>ISO-2022-JP-1</code></dt> |
| 1036 |
|
<dd><code>ISO-2022-JP-1</code> is not registered, nevertheless |
| 1037 |
|
this character encoding name is documented in |
| 1038 |
|
<a href="urn:ietf:rfc:2237"><abbr>RFC</abbr> 2237</a>. Use |
| 1039 |
|
<code>ISO-2022-JP-2</code> instead, since that character encoding |
| 1040 |
|
is a superset of ISO-2022-JP-1.</dd> |
| 1041 |
|
<dt><code>ISO-2022-JP-3</code>, <code>ISO-2022-JP-3-plane1</code></dt> |
| 1042 |
|
<dd>These names are not registered and obsoleted in favor of |
| 1043 |
|
<code>ISO-2022-JP-2004</code> and |
| 1044 |
|
<code>ISO-2022-JP-2004-plane1</code>.</dd> |
| 1045 |
|
<dt><code>ISO-2022-JP-2003</code>, |
| 1046 |
|
<code>ISO-2022-JP-2003-plane1</code></dt> |
| 1047 |
|
<dd>These names are not registered and corrected to |
| 1048 |
|
<code>ISO-2022-JP-2004</code> and |
| 1049 |
|
<code>ISO-2022-JP-2004-plane1</code>.</dd> |
| 1050 |
|
<dt><code>ISO-2022-JP-2004</code>, |
| 1051 |
|
<code>ISO-2022-JP-2004-plane1</code></dt> |
| 1052 |
|
<dd>These names are not registered. Unfortunately, there is |
| 1053 |
|
no registered name for these character encodings.</dd> |
| 1054 |
|
<dt><code>UTF-8N</code></dt> |
| 1055 |
|
<dd><code>UTF-8N</code> is not registered. Character encoding |
| 1056 |
|
name <code>UTF-8</code> represents UTF-8 encoding with or |
| 1057 |
|
without <abbr>BOM</abbr>.</dd> |
| 1058 |
|
</dl> |
| 1059 |
|
|
| 1060 |
|
<p><strong>WARNING</strong>: This error might be raised for |
| 1061 |
|
a registered character encoding name, since the character encoding |
| 1062 |
|
name database of the conformance checker is not complete yet.</p> |
| 1063 |
|
</d:desc> |
| 1064 |
|
</d:item> |
| 1065 |
|
|
| 1066 |
|
<d:item name="charset:private" class="attribute-value-warning warning" |
| 1067 |
|
level="w"> |
| 1068 |
|
<d:message xml:lang="en"><code><var>$0</var></code> is a private |
| 1069 |
|
character encoding name.</d:message> |
| 1070 |
|
<d:desc xml:lang="en"> |
| 1071 |
|
<p>The specified character encoding name is a private name and |
| 1072 |
|
not registered to <abbr>IANA</abbr>. Use of registered character |
| 1073 |
|
encoding name is a good practice to facilitate interoperability.</p> |
| 1074 |
|
|
| 1075 |
|
<dl class="switch"> |
| 1076 |
|
<dt><code>x-euc-jp</code></dt> |
| 1077 |
|
<dd>Use <code>EUC-JP</code> for the Japanese <abbr>EUC</abbr> |
| 1078 |
|
character encoding.</dd> |
| 1079 |
|
<dt><code>x-sjis</code></dt> |
| 1080 |
|
<dd>Use <code>Shift_JIS</code> for standard Shift encoding scheme of |
| 1081 |
|
<abbr>JIS</abbr> coded character set, or <code>Windows-31J</code> |
| 1082 |
|
for Microsoft standard character set as implemented by |
| 1083 |
|
Microsoft Windows.</dd> |
| 1084 |
|
</dl> |
| 1085 |
|
</d:desc> |
| 1086 |
|
</d:item> |
| 1087 |
|
|
| 1088 |
|
<d:item name="charset:syntax error" class="attribute-value-error" |
| 1089 |
|
level="m"> |
| 1090 |
|
<d:message xml:lang="en">The specified value is syntactically not a |
| 1091 |
|
character encoding name.</d:message> |
| 1092 |
|
<d:desc xml:lang="en"> |
| 1093 |
|
<p>The attribute value must be a character encoding name. However, |
| 1094 |
|
the specified value is not a character encoding name syntactically. |
| 1095 |
|
The document is non‐conforming.</p> |
| 1096 |
|
<p>Character encoding name is a string of <abbr>ASCII</abbr> |
| 1097 |
|
printable characters, up to 40 characters.</p> |
| 1098 |
|
</d:desc> |
| 1099 |
|
</d:item> |
| 1100 |
|
|
| 1101 |
<d:item name="enumerated:invalid" |
<d:item name="enumerated:invalid" |
| 1102 |
class="attribute-value-error"> |
class="attribute-value-error"> |
| 1103 |
<d:message xml:lang="en">This attribute only allow a limited set of |
<d:message xml:lang="en">This attribute only allow a limited set of |
| 1131 |
|
|
| 1132 |
<d:item name="enumerated:invalid:http-equiv:content-type" |
<d:item name="enumerated:invalid:http-equiv:content-type" |
| 1133 |
class="attribute-value-error"> |
class="attribute-value-error"> |
| 1134 |
<d:message xml:lang="en">Charset declaration syntax |
<d:message xml:lang="en">Character encoding declaration syntax |
| 1135 |
<code class="html bad example"><meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"></code> |
<code class="html bad example"><meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"></code> |
| 1136 |
is obsolete.</d:message> |
is obsolete.</d:message> |
| 1137 |
<d:desc xml:lang="en"> |
<d:desc xml:lang="en"> |
| 1138 |
<p>Old long charset declaration syntax |
<p>Old long character encoding declaration syntax |
| 1139 |
<code class="html bad example"><meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"></code> |
<code class="html bad example"><meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"></code> |
| 1140 |
is in use. The document is non‐conforming.</p> |
is in use. The document is non‐conforming.</p> |
| 1141 |
|
|
| 1142 |
<p>The new charset declaration syntax is: |
<p>The new character encoding declaration syntax is: |
| 1143 |
<pre class="html example"><code><meta charset="<var>charset-name</var>"></code></pre> |
<pre class="html example"><code><meta charset="<var>charset-name</var>"></code></pre> |
| 1144 |
</p> |
</p> |
| 1145 |
</d:desc> |
</d:desc> |
| 1194 |
</d:desc> |
</d:desc> |
| 1195 |
</d:item> |
</d:item> |
| 1196 |
|
|
| 1197 |
|
<d:item name="mismatched charset name" class="attribute-value-error" |
| 1198 |
|
level="m"> |
| 1199 |
|
<d:message xml:lang="en">Character encoding name <code><var>$1</var></code> |
| 1200 |
|
is different from document character encoding |
| 1201 |
|
<code><var>$0</var></code>.</d:message> |
| 1202 |
|
<d:desc xml:lang="en"> |
| 1203 |
|
<p>The specified character encoding name is different from |
| 1204 |
|
the character encoding of the document. The document |
| 1205 |
|
is non‐conforming.</p> |
| 1206 |
|
</d:desc> |
| 1207 |
|
</d:item> |
| 1208 |
|
|
| 1209 |
<d:item name="reserved browsing context name" |
<d:item name="reserved browsing context name" |
| 1210 |
class="attribute-value-error"> |
class="attribute-value-error"> |
| 1211 |
<d:message xml:lang="en">Browsing context name |
<d:message xml:lang="en">Browsing context name |
| 1575 |
It does not affect to the conformance of the document, and |
It does not affect to the conformance of the document, and |
| 1576 |
may sometimes be inappropriate.</td> |
may sometimes be inappropriate.</td> |
| 1577 |
</tr> |
</tr> |
| 1578 |
<tr id="level-unsupported" class="level-unsupported"> |
<tr id="level-u" class="level-u"> |
| 1579 |
<th scope="row">Not supported</th> |
<th scope="row">Not supported</th> |
| 1580 |
<td><em>Unknown</em>.</td> |
<td><em>Unknown</em>.</td> |
| 1581 |
<td>Some feature that is not supported by the conformance checker |
<td>Some feature that is not supported by the conformance checker |