Parent Directory
|
Revision Log
++ html/WebHACC/ChangeLog 14 Sep 2008 03:09:19 -0000 2008-09-14 Wakaba <wakaba@suika.fam.cx> * Output.pm (generate_input_section): Set |tabindex=0| to |details| header, to make the header focusable.
| 1 | wakaba | 1.1 | <!DOCTYPE html> |
| 2 | <html xmlns="http://www.w3.org/1999/xhtml" | ||
| 3 | xmlns:d="http://suika.fam.cx/~wakaba/archive/2007/wdcc-desc/" | ||
| 4 | id="error-description"> | ||
| 5 | <head> | ||
| 6 | wakaba | 1.36 | <base href="cc/"/> |
| 7 | <title xml:lang="en">Description of Errors — WebHACC (β)</title> | ||
| 8 | wakaba | 1.37 | <title xml:lang="ja">誤りの説明 — WebHACC (β)</title> |
| 9 | wakaba | 1.36 | <link rel="stylesheet" href="../cc-style"/> |
| 10 | wakaba | 1.1 | <link rel="license" href="#license"/> |
| 11 | </head> | ||
| 12 | <body> | ||
| 13 | wakaba | 1.36 | <header> |
| 14 | <h1><a href="../cc-about"><abbr title="Web Hypertext Application Conformance Checker (β)"><img src="../icons/title" alt="WebHACC"/></abbr></a></h1> | ||
| 15 | <h2>Description of Errors</h2> | ||
| 16 | </header> | ||
| 17 | |||
| 18 | <d:cat name="WebHACC:Title"> | ||
| 19 | <d:text xml:lang="en">WebHACC (β)</d:text> | ||
| 20 | </d:cat> | ||
| 21 | |||
| 22 | <d:cat name="WebHACC:Heading"> | ||
| 23 | <d:text xml:lang="en"> | ||
| 24 | <a href="../error-description#WebHACC:Heading" rel="help"><abbr title="Web Hypertext Application Conformance Checker (β)"><img src="../icons/title" alt="WebHACC"/></abbr></a> | ||
| 25 | </d:text> | ||
| 26 | <d:text xml:lang="ja"> | ||
| 27 | <a href="../error-description#WebHACC:Heading" rel="help"><abbr title="Web ハイパーテキスト応用適合性検査器 (β)"><img src="../icons/title" alt="WebHACC"/></abbr></a> | ||
| 28 | </d:text> | ||
| 29 | <d:desc xml:lang="en"> | ||
| 30 | <p><a href="./#input"><abbr title="Web Hypertext Application Conformance Checker">WebHACC</abbr></a> | ||
| 31 | is a <em>conformance checker</em> (or validator) for Web documents, | ||
| 32 | supporting <a href="../standards">latest Web standards</a> including | ||
| 33 | <a href="http://whatwg.org/html5"><abbr title="Hypertext Markup Language">HTML</abbr>5</a>, | ||
| 34 | <a href="urn:ietf:rfc:4287">Atom 1.0</a>, | ||
| 35 | <a href="http://www.w3.org/Style/CSS/current-work"><abbr title="Cascading Style Sheets">CSS</abbr>3</a>.</p> | ||
| 36 | |||
| 37 | <p><strong><a href="./#input">Check your document</a></strong>, or | ||
| 38 | <a href="../cc-about">learn more about | ||
| 39 | <abbr title="Web Hypertext Application Conformance Checker">WebHACC</abbr></a>.</p> | ||
| 40 | </d:desc> | ||
| 41 | <d:desc xml:lang="ja"> | ||
| 42 | <p><a href="./#input"><abbr title="Web ハイパーテキスト応用適合性検査器">WebHACC</abbr></a> | ||
| 43 | は、 Web 文書のための<em>適合性検査器</em> (妥当性検証器) です。 | ||
| 44 | <a href="http://whatwg.org/html5"><abbr title="Hypertext Markup Language">HTML</abbr>5</a>、 | ||
| 45 | <a href="urn:ietf:rfc:4287">Atom 1.0</a>、 | ||
| 46 | <a href="http://www.w3.org/Style/CSS/current-work"><abbr title="Cascading Style Sheets">CSS</abbr>3</a> | ||
| 47 | などの<a href="../standards">最新の Web 標準</a>に対応しています。</p> | ||
| 48 | |||
| 49 | <p><strong><a href="./#input">文書を検査する</a></strong></p> | ||
| 50 | |||
| 51 | <p><a href="../cc-about"><abbr title="Web ハイパーテキスト応用適合性検査器">WebHACC</abbr> | ||
| 52 | の詳細</a></p> | ||
| 53 | </d:desc> | ||
| 54 | </d:cat> | ||
| 55 | wakaba | 1.1 | |
| 56 | wakaba | 1.23 | <section id="character-encoding-layer"> |
| 57 | <h2>Character Encoding Layer Errors</h2> | ||
| 58 | |||
| 59 | wakaba | 1.43 | <d:item name="fallback-char-error" |
| 60 | modules="Charset::DecodeHandle"> | ||
| 61 | <d:message xml:lang="en">Octet sequence <code><var>{octets}</var></code> | ||
| 62 | is not an allowed representation of the character | ||
| 63 | <code><var>{char}</var></code> — character reference | ||
| 64 | <code><var>{char:hexref}</var></code> should be used instead.</d:message> | ||
| 65 | <!-- HTML5 parse error --> | ||
| 66 | </d:item> | ||
| 67 | |||
| 68 | <d:item name="fallback-unassigned-error" | ||
| 69 | modules="Charset::DecodeHandle"> | ||
| 70 | <d:message xml:lang="en">No character is assigned to octet sequence | ||
| 71 | <code><var>{octets}</var></code>.</d:message> | ||
| 72 | <!-- HTML5 parse error --> | ||
| 73 | </d:item> | ||
| 74 | |||
| 75 | <d:item name="illegal-octets-error" | ||
| 76 | modules="Charset::DecodeHandle"> | ||
| 77 | <d:message xml:lang="en">Octet sequence <code><var>{octets}</var></code> | ||
| 78 | is illegal.</d:message> | ||
| 79 | </d:item> | ||
| 80 | |||
| 81 | <d:item name="invalid-state-error" | ||
| 82 | modules="Charset::DecodeHandle::ISO2022JP"> | ||
| 83 | <!-- TODO: more user-friendly error message is desired... --> | ||
| 84 | <d:message xml:lang="en">The input stream is broken.</d:message> | ||
| 85 | <d:desc xml:lang="en"> | ||
| 86 | <p>The input stream is encoded in <code>ISO-2022-JP</code> | ||
| 87 | or its variant but is partially broken.</p> | ||
| 88 | |||
| 89 | <p>Note that an <code>ISO-2022-JP</code> stream must end in the ASCII | ||
| 90 | state.</p> | ||
| 91 | </d:desc> | ||
| 92 | </d:item> | ||
| 93 | |||
| 94 | <d:item name="unassigned-code-point-error" | ||
| 95 | modules="Charset::DecodeHandle"> | ||
| 96 | <d:message xml:lang="en">No character is assigned to octet sequence | ||
| 97 | <code><var>{octets}</var></code>.</d:message> | ||
| 98 | wakaba | 1.23 | </d:item> |
| 99 | </section> | ||
| 100 | |||
| 101 | wakaba | 1.16 | <section id="html5-character-encoding"> |
| 102 | <h2>HTML5 Character Encoding Errors</h2> | ||
| 103 | |||
| 104 | wakaba | 1.30 | <d:item name="disallowed character encoding" |
| 105 | modules="ContentChecker"> | ||
| 106 | <d:message xml:lang="en">Character encoding <code><var>{text}</var></code> | ||
| 107 | wakaba | 1.16 | is not allowed for <abbr>HTML</abbr> document.</d:message> |
| 108 | <d:desc xml:lang="en"> | ||
| 109 | <p>The character encoding used for the document is not allowed | ||
| 110 | for <abbr>HTML</abbr> document. The document is non‐conforming.</p> | ||
| 111 | </d:desc> | ||
| 112 | </d:item> | ||
| 113 | |||
| 114 | wakaba | 1.30 | <d:item name="bad character encoding" |
| 115 | modules="ContentChecker"> | ||
| 116 | <d:message xml:lang="en">Character encoding <code><var>{text}</var></code> | ||
| 117 | wakaba | 1.16 | should not be used for <abbr>HTML</abbr> document.</d:message> |
| 118 | <d:desc xml:lang="en"> | ||
| 119 | <p>The character encoding used for the document is not recommended | ||
| 120 | for <abbr>HTML</abbr> document. The document is non‐conforming | ||
| 121 | unless there is any good reason to use that encoding.</p> | ||
| 122 | </d:desc> | ||
| 123 | </d:item> | ||
| 124 | |||
| 125 | wakaba | 1.30 | <d:item name="non-utf-8 character encoding" |
| 126 | modules="ContentChecker"> | ||
| 127 | <d:message xml:lang="en">Use of UTF-8 is encouraged (this document | ||
| 128 | is encoded in <code><var>{text}</var></code>).</d:message> | ||
| 129 | wakaba | 1.16 | <d:desc xml:lang="en"> |
| 130 | <p>Use of UTF-8 as the character encoding of the document is encouraged, | ||
| 131 | wakaba | 1.21 | though the use of another character encoding is still conforming.</p> |
| 132 | wakaba | 1.16 | </d:desc> |
| 133 | </d:item> | ||
| 134 | |||
| 135 | wakaba | 1.30 | <d:item name="character encoding unchecked" |
| 136 | modules="ContentChecker"> | ||
| 137 | wakaba | 1.17 | <d:message xml:lang="en">Conformance for character encoding requirements |
| 138 | wakaba | 1.30 | cannot be checked, since the input is not a byte stream.</d:message> |
| 139 | wakaba | 1.17 | <d:desc xml:lang="en"> |
| 140 | <p>The conformance checker cannot detect whether the input document | ||
| 141 | met the requirements on character encoding, since the document | ||
| 142 | is not inputed as a serialized byte sequence. The document is | ||
| 143 | not conforming if it is not encoded in an appropriate character | ||
| 144 | encoding with appropriate labeling.</p> | ||
| 145 | </d:desc> | ||
| 146 | </d:item> | ||
| 147 | |||
| 148 | wakaba | 1.30 | <d:item name="no character encoding declaration" |
| 149 | modules="ContentChecker"> | ||
| 150 | wakaba | 1.16 | <d:message xml:lang="en">There is no character encoding |
| 151 | declaration.</d:message> | ||
| 152 | <d:desc xml:lang="en"> | ||
| 153 | <p>The document does not contain a character encoding | ||
| 154 | declaration. Unless the character encoding is explicitly | ||
| 155 | wakaba | 1.17 | specified in lower‐level protocol, e.g. in <abbr>HTTP</abbr>, |
| 156 | wakaba | 1.16 | or is implied by <abbr>BOM</abbr>, there must be a character |
| 157 | encoding declaration. The document is non‐conforming.</p> | ||
| 158 | |||
| 159 | <p>The long character encoding declaration syntax | ||
| 160 | <code class="html bad example"><meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"></code> | ||
| 161 | is obsolete. The new syntax is:</p> | ||
| 162 | <pre class="html example"><code><meta charset="<var>charset-name</var>"></code></pre> | ||
| 163 | |||
| 164 | <p>Note that the <code>encoding</code> declaration in <abbr>XML</abbr> | ||
| 165 | declaration has no effect for <abbr>HTML</abbr> document.</p> | ||
| 166 | </d:desc> | ||
| 167 | </d:item> | ||
| 168 | |||
| 169 | wakaba | 1.30 | <d:item name="non ascii superset" |
| 170 | modules="ContentChecker"> | ||
| 171 | wakaba | 1.16 | <d:message xml:lang="en">No character encoding metadata is found |
| 172 | wakaba | 1.17 | in lower‐level protocol nor is there <abbr>BOM</abbr>, while |
| 173 | wakaba | 1.30 | character encoding <code><var>{text}</var></code> |
| 174 | wakaba | 1.16 | is not a superset of <abbr>ASCII</abbr>.</d:message> |
| 175 | <d:desc xml:lang="en"> | ||
| 176 | <p>The document is not labeled with character encoding name | ||
| 177 | wakaba | 1.17 | in lower‐level protocol, e.g. in <abbr>HTTP</abbr>, and |
| 178 | wakaba | 1.16 | the document is not begin with <abbr>BOM</abbr>. In addition, |
| 179 | the character encoding of the document is not a superset of | ||
| 180 | <abbr>ASCII</abbr>. The document is non‐conforming.</p> | ||
| 181 | |||
| 182 | <p>Unless there is a <abbr>BOM</abbr>, the character encoding | ||
| 183 | for the document must be specified in e.g. <abbr>HTTP</abbr>‐level, | ||
| 184 | as:</p> | ||
| 185 | <pre class="http example"><code>Content-Type: text/html; charset=<var>charset-name</var></code></pre> | ||
| 186 | |||
| 187 | <p>Existence of <abbr>HTML</abbr> character encoding declaration, i.e. | ||
| 188 | <code class="html example"><meta charset="<var>charset-name</var>"></code>, | ||
| 189 | does not allow to omit <code>charset</code> parameter | ||
| 190 | for <abbr>HTML</abbr> document encoded in non‐<abbr>ASCII</abbr> | ||
| 191 | compatible encoding.</p> | ||
| 192 | |||
| 193 | <p>Character encodings <code>Shift_JIS</code>, <code>Windows-31J</code>, | ||
| 194 | and <code>ISO-2022-JP</code> are <em>not</em> a superset of | ||
| 195 | <abbr>ASCII</abbr> for the purpose of <abbr>HTML</abbr> conformance.</p> | ||
| 196 | </d:desc> | ||
| 197 | </d:item> | ||
| 198 | |||
| 199 | wakaba | 1.29 | <d:item name="sniffing:chardet" |
| 200 | modules="HTML::Parser"> | ||
| 201 | <d:message xml:lang="en">Character encoding of this document is sniffed | ||
| 202 | as <code><var>{text}</var></code> (Sniffed because no explicit specification | ||
| 203 | for the character encoding of this document is found in the transfer | ||
| 204 | procotol headers).</d:message> | ||
| 205 | </d:item> | ||
| 206 | |||
| 207 | <d:item name="sniffing:default" | ||
| 208 | modules="HTML::Parser"> | ||
| 209 | <d:message xml:lang="en">Character encoding of this document is defaulted | ||
| 210 | to <code><var>{text}</var></code> because no explicit specification | ||
| 211 | for the character encoding of this document is found in the transfer | ||
| 212 | procotol headers.</d:message> | ||
| 213 | </d:item> | ||
| 214 | |||
| 215 | <d:item name="chardecode:fallback" | ||
| 216 | modules="HTML::Parser"> | ||
| 217 | wakaba | 1.43 | <d:message xml:lang="en">Results might be <em>wrong</em>, since the |
| 218 | conformance checker cannot find an appropriate decoder for the character | ||
| 219 | encoding used for the document.</d:message> | ||
| 220 | <d:desc xml:lang="en"> | ||
| 221 | <p>The conformance checker cannot find an appropriate decoder for | ||
| 222 | the character encoding used to encode characters in the document.</p> | ||
| 223 | |||
| 224 | <p>This error is raised if:</p> | ||
| 225 | <ul> | ||
| 226 | <li>the conformance checker cannot find any decoder for the character | ||
| 227 | encoding in use, but it knows that the encoding is similar to another | ||
| 228 | character encoding, such that it uses the decoder for that character | ||
| 229 | encoding, and therefore some octets might be interpreted incorrectly, | ||
| 230 | or,</li> | ||
| 231 | <li>the conformance checker find a decoder for the character encoding | ||
| 232 | in use, but it does not know whether the decoder is conforming to the | ||
| 233 | relevant specification or not, and therefore some octets might be | ||
| 234 | interpreted incorrectly.</li> | ||
| 235 | </ul> | ||
| 236 | |||
| 237 | <p>In either case, the result shown by the conformance checker might | ||
| 238 | contain wrong errors caused by errorneous decoder or might not contain | ||
| 239 | errors that should be raised if an appropriate decoder is used.</p> | ||
| 240 | |||
| 241 | <!-- TODO: add advise that either install relevant modules or | ||
| 242 | join the developmenet of the modules... --> | ||
| 243 | </d:desc> | ||
| 244 | wakaba | 1.29 | </d:item> |
| 245 | |||
| 246 | <d:item name="chardecode:no error" | ||
| 247 | modules="HTML::Parser"> | ||
| 248 | <d:message xml:lang="en">Conformance error checking for the character | ||
| 249 | encoding <code><var>{text}</var></code> is not supported.</d:message> | ||
| 250 | </d:item> | ||
| 251 | |||
| 252 | <d:item name="charset label:matching" | ||
| 253 | modules="HTML::Parser"> | ||
| 254 | <d:message xml:lang="en">Sniffed character encoding | ||
| 255 | <code><var>{text}</var></code> is same as the character encoding specified | ||
| 256 | in the character encoding declaration. This is <em>not</em> an | ||
| 257 | error.</d:message> | ||
| 258 | </d:item> | ||
| 259 | |||
| 260 | <d:item name="charset label detected" | ||
| 261 | modules="HTML::Parser"> | ||
| 262 | wakaba | 1.16 | <d:message xml:lang="en">While parsing the document as |
| 263 | wakaba | 1.29 | <code><var>{text}</var></code>, a character encoding declaration specifying |
| 264 | a different character encoding is found. The document | ||
| 265 | wakaba | 1.16 | is reparsed.</d:message> |
| 266 | <d:desc xml:lang="en"> | ||
| 267 | <p>While parsing a document in a character encoding, | ||
| 268 | a character encoding declaration which declares the character | ||
| 269 | encoding of the document as another character encoding is found. | ||
| 270 | The occurence of this warning itself does not make the document | ||
| 271 | non‐conforming. However, the failure of the first attempt to | ||
| 272 | wakaba | 1.21 | to detect the character encoding might be a result of non‐conformance |
| 273 | wakaba | 1.16 | of the document.</p> |
| 274 | |||
| 275 | <p>The document will be reparsed from the beginning. Some error | ||
| 276 | or warning might be reported again.</p> | ||
| 277 | |||
| 278 | <p>These are suggestions to avoid this warning:</p> | ||
| 279 | <ul> | ||
| 280 | <li>Specify <code>charset</code> parameter in the <code>Content-Type</code> | ||
| 281 | field in the <abbr>HTTP</abbr> header, as: | ||
| 282 | <pre class="HTTP example"><code>Content-Type: text/html; charset="<var>charset-name</var>"</code></pre></li> | ||
| 283 | <li>Put the character encoding declaration | ||
| 284 | (<code class="html example"><meta charset="<var>charset-name</var>"></code>) | ||
| 285 | just after <code class="html example"><head></code> start tag.</li> | ||
| 286 | <li>Use <code>UTF-8</code>.</li> | ||
| 287 | </ul> | ||
| 288 | </d:desc> | ||
| 289 | </d:item> | ||
| 290 | wakaba | 1.44 | </section> |
| 291 | |||
| 292 | <section id="character-set-layer"> | ||
| 293 | <h2>Coded Character Set Layer Errors</h2> | ||
| 294 | wakaba | 1.29 | |
| 295 | <d:item name="NULL" | ||
| 296 | modules="HTML::Parser"> | ||
| 297 | wakaba | 1.44 | <!-- HTML5 Parse Error --> |
| 298 | wakaba | 1.29 | <d:message xml:lang="en">The <code class="charname">NULL</code> character |
| 299 | is not allowed.</d:message> | ||
| 300 | </d:item> | ||
| 301 | |||
| 302 | <d:item name="control char" | ||
| 303 | modules="HTML::Parser"> | ||
| 304 | wakaba | 1.44 | <!-- HTML5 Parse Error --> |
| 305 | wakaba | 1.29 | <d:message xml:lang="en">Code point <code><var>{text}</var></code> is |
| 306 | not allowed.</d:message> | ||
| 307 | </d:item> | ||
| 308 | |||
| 309 | wakaba | 1.44 | <d:item name="nonchar" |
| 310 | modules="Charset::UnicodeChecker"> | ||
| 311 | <d:message xml:lang="en">Noncharacter <code><var>{text}</var></code> | ||
| 312 | is found in the input stream.</d:message> | ||
| 313 | <d:desc xml:lang="en"> | ||
| 314 | <p>Noncharacter code points are used in the input stream.</p> | ||
| 315 | |||
| 316 | <p>Noncharacter code points are reserved for internal processings. | ||
| 317 | Their use for information interchanges are forbidden.</p> | ||
| 318 | |||
| 319 | <p>In addition, they are not allowed in HTML document.</p> | ||
| 320 | <!-- "permanently undefined Unicode characters" in HTML5. --> | ||
| 321 | </d:desc> | ||
| 322 | </d:item> | ||
| 323 | |||
| 324 | <d:item name="unicode deprecated" | ||
| 325 | modules="Charset::UnicodeChecker"> | ||
| 326 | <d:message xml:lang="en">Use of character <code><var>{text}</var></code> | ||
| 327 | is deprecated.</d:message> | ||
| 328 | </d:item> | ||
| 329 | |||
| 330 | <d:item name="unicode discouraged" | ||
| 331 | modules="Charset::UnicodeChecker"> | ||
| 332 | <d:message xml:lang="en">Use of character <code><var>{text}</var></code> | ||
| 333 | is discouraged.</d:message> | ||
| 334 | </d:item> | ||
| 335 | |||
| 336 | <d:item name="unicode not preferred" | ||
| 337 | modules="Charset::UnicodeChecker"> | ||
| 338 | <d:message xml:lang="en">Code point <code><var>{text}</var></code> | ||
| 339 | is not the preferred representation of that character.</d:message> | ||
| 340 | </d:item> | ||
| 341 | |||
| 342 | <d:item name="unicode should" | ||
| 343 | modules="Charset::UnicodeChecker"> | ||
| 344 | <d:message xml:lang="en">Character <code><var>{text}</var></code> | ||
| 345 | should not be used in many cases.</d:message> | ||
| 346 | </d:item> | ||
| 347 | |||
| 348 | wakaba | 1.16 | </section> |
| 349 | |||
| 350 | wakaba | 1.2 | <section id="html5-tokenize-error"> |
| 351 | <h2>HTML5 Parse Errors in Tokenization Stage</h2> | ||
| 352 | wakaba | 1.1 | |
| 353 | wakaba | 1.29 | <d:item name="bad attribute name" |
| 354 | modules="HTML::Parser"> | ||
| 355 | <d:message xml:lang="en">Attribute name cannot contain characters | ||
| 356 | <code>"</code>, <code>'</code>, and <code>=</code>.</d:message> | ||
| 357 | </d:item> | ||
| 358 | |||
| 359 | <d:item name="bad attribute value" | ||
| 360 | modules="HTML::Parser"> | ||
| 361 | <d:message xml:lang="en">Attribute value must be quoted by <code>"</code> | ||
| 362 | or <code>'</code> if it contains a <code>"</code>, <code>'</code>, or | ||
| 363 | <code>=</code> character.</d:message> | ||
| 364 | wakaba | 1.41 | <d:desc xml:lang="en"> |
| 365 | <p>In an unquoted attribute value, a character <code>"</code> | ||
| 366 | (<code>U+0022</code> <code class="charname">QUOTATION MARK</code>), | ||
| 367 | <code>'</code> (<code>U+0026</code> | ||
| 368 | <code class="charname">APOSTROPHE</code>), or <code>=</code> | ||
| 369 | (<code>U+003D</code> <code class="charname">EQUAL SIGN</code>) | ||
| 370 | is contained. These characters are not allowed in unquoted attribute | ||
| 371 | values, since they are used to quote attribute values or to separate | ||
| 372 | attribute name and value.</p> | ||
| 373 | |||
| 374 | <p>This error is also raised if one try to use empty attribute | ||
| 375 | value like <code class="html bad example"><foo bar= baz=></code>; | ||
| 376 | in this example, <code class="html bad example">baz=</code> is | ||
| 377 | treated as an invalid attribute value for the attribute | ||
| 378 | <code class="html bad example">bar</code>, not as another attribute.</p> | ||
| 379 | </d:desc> | ||
| 380 | wakaba | 1.29 | </d:item> |
| 381 | |||
| 382 | wakaba | 1.3 | <d:item name="bare ero" |
| 383 | wakaba | 1.29 | modules="HTML::Parser"> |
| 384 | wakaba | 1.3 | <d:message xml:lang="en">The <code>&</code> character must |
| 385 | wakaba | 1.22 | be escaped as <code class="html example">&amp;</code>.</d:message> |
| 386 | wakaba | 1.3 | <d:desc xml:lang="en"> |
| 387 | wakaba | 1.15 | <p>An <code>&</code> character which |
| 388 | wakaba | 1.3 | is not part of any reference appears in the input stream. |
| 389 | wakaba | 1.15 | The document is non‐conforming.</p> |
| 390 | wakaba | 1.3 | |
| 391 | wakaba | 1.15 | <p><em>Any <code>&</code> character in URI (or IRI) |
| 392 | must be escaped as <code class="example">&amp;</code>.</em></p> | ||
| 393 | wakaba | 1.9 | |
| 394 | wakaba | 1.3 | <p>The <code>&</code> character must |
| 395 | be the first character of a reference: | ||
| 396 | wakaba | 1.15 | <dl class="switch"> |
| 397 | wakaba | 1.3 | <dt>Named entity reference</dt> |
| 398 | <dd><pre class="html example"><code>&<var>entity-name</var>;</code></pre> | ||
| 399 | where <var>entity-name</var> is the name of the | ||
| 400 | character entity to be referenced.</dd> | ||
| 401 | <dt>Numeric character reference</dt> | ||
| 402 | <dd><pre class="html example"><code>&#<var>d</var>;</code></pre> | ||
| 403 | where <var>d</var> is the decimal representation of | ||
| 404 | the code position of the character to be referenced.</dd> | ||
| 405 | <dt>Hexadecimal character reference</dt> | ||
| 406 | <dd><pre class="html example"><code>&#x<var>h</var>;</code></pre> | ||
| 407 | where <var>h</var> is the hexadecimal representation | ||
| 408 | of the code position of the character to be referenced.</dd> | ||
| 409 | </dl> | ||
| 410 | </p> | ||
| 411 | |||
| 412 | <p>To represent <code>&</code> as a data character, use | ||
| 413 | named entity reference: | ||
| 414 | <pre class="html example"><code>&amp;</code></pre> | ||
| 415 | </p> | ||
| 416 | </d:desc> | ||
| 417 | </d:item> | ||
| 418 | |||
| 419 | wakaba | 1.7 | <d:item name="bare etago" |
| 420 | wakaba | 1.29 | modules="HTML::Parser"> |
| 421 | wakaba | 1.7 | <d:message xml:lang="en">A <code></</code> string is not followed |
| 422 | by a tag name.</d:message><!-- </ EOF --> | ||
| 423 | <d:desc xml:lang="en"> | ||
| 424 | <p>There is a <code><</code> (<code>U+003C</code> | ||
| 425 | <code class="charname">LESS-THAN SIGN</code>) character | ||
| 426 | immediately followed by a <code>/</code> (<code>U+005F</code> | ||
| 427 | <code>SOLIDUS</code>) character, which is not part | ||
| 428 | of any end tag, in the input stream. The document | ||
| 429 | is non-conforming.</p> | ||
| 430 | |||
| 431 | <p>The <code></</code> sequence immediately followed | ||
| 432 | by an <abbr title="End of file pseudo-character">EOF</abbr> is | ||
| 433 | interpreted as a string data of <code></</code>.</p> | ||
| 434 | |||
| 435 | <p>The <code></</code> sequence as string data must | ||
| 436 | be escaped as: | ||
| 437 | <pre class="html example"><code>&lt;/</code></pre> | ||
| 438 | </p> | ||
| 439 | </d:desc> | ||
| 440 | </d:item> | ||
| 441 | |||
| 442 | wakaba | 1.4 | <d:item name="bare stago" |
| 443 | wakaba | 1.29 | modules="HTML::Parser"> |
| 444 | wakaba | 1.4 | <d:message xml:lang="en">A <code><</code> character is not followed |
| 445 | by tag name or by a <code>!</code> character.</d:message> | ||
| 446 | <d:desc xml:lang="en"> | ||
| 447 | wakaba | 1.6 | <p>A <code><</code> (<code>U+003C</code> |
| 448 | <code class="charname">LESS-THAN SIGN</code>) character which is not part | ||
| 449 | of any markup appears in the input stream.</p> | ||
| 450 | wakaba | 1.4 | |
| 451 | <p>The <code><</code> character as a data character must | ||
| 452 | be escaped as: | ||
| 453 | wakaba | 1.6 | <pre class="html example"><code>&lt;</code></pre> |
| 454 | wakaba | 1.4 | </p> |
| 455 | </d:desc> | ||
| 456 | </d:item> | ||
| 457 | |||
| 458 | wakaba | 1.3 | <d:item name="bare nero" |
| 459 | wakaba | 1.29 | modules="HTML::Parser"> |
| 460 | wakaba | 1.3 | <d:message xml:lang="en">The decimal representation of the code position |
| 461 | of a character must be specified after <code>&#</code>.</d:message> | ||
| 462 | <d:desc xml:lang="en"> | ||
| 463 | <p>An <code>&</code> (<code>U+0026</code> | ||
| 464 | <code class="charname">AMPERSAND</code>) character immediately | ||
| 465 | followed by a <code>#</code> (<code>U+0023</code> | ||
| 466 | <code>NUMBER SIGN</code>) character which | ||
| 467 | is not part of any reference appears in the input stream. | ||
| 468 | The document is non-conforming.</p> | ||
| 469 | |||
| 470 | <p>The string <code>&#</code> must be the first two characters | ||
| 471 | of a reference: | ||
| 472 | wakaba | 1.15 | <dl class="switch"> |
| 473 | wakaba | 1.3 | <dt>Numeric character reference</dt> |
| 474 | <dd><pre class="html example"><code>&#<var>d</var>;</code></pre> | ||
| 475 | where <var>d</var> is the decimal representation of | ||
| 476 | the code point of the character to be referenced.</dd> | ||
| 477 | <dt>Hexadecimal character reference</dt> | ||
| 478 | <dd><pre class="html example"><code>&#x<var>h</var>;</code></pre> | ||
| 479 | where <var>h</var> is the hexadecimal representation | ||
| 480 | of the code point of the character to be referenced.</dd> | ||
| 481 | </dl> | ||
| 482 | </p> | ||
| 483 | |||
| 484 | <p>To represent <code>&#</code> as data characters, use | ||
| 485 | wakaba | 1.6 | a named entity reference for the <code>&</code> character: |
| 486 | wakaba | 1.3 | <pre class="html example"><code>&amp;#</code></pre> |
| 487 | </p> | ||
| 488 | </d:desc> | ||
| 489 | </d:item> | ||
| 490 | |||
| 491 | <d:item name="bare hcro" | ||
| 492 | wakaba | 1.29 | modules="HTML::Parser"> |
| 493 | wakaba | 1.3 | <d:message xml:lang="en">The hexadecimal representation of the code position |
| 494 | of a character must be specified after <code>&#x</code>.</d:message> | ||
| 495 | <d:desc xml:lang="en"> | ||
| 496 | <p>The string <code>&#x</code> or <code>&#X</code> which | ||
| 497 | is not part of any reference appears in the input stream. | ||
| 498 | The document is non-conforming.</p> | ||
| 499 | |||
| 500 | <p>The string <code>&#x</code> or <code>&#X</code> must | ||
| 501 | be the first three characters of a hexadecimal reference: | ||
| 502 | <pre class="html example"><code>&#x<var>h</var>;</code></pre> | ||
| 503 | where <var>h</var> is the hexadecimal representation | ||
| 504 | of the code point of the character to be referenced.</p> | ||
| 505 | |||
| 506 | <p>To represent <code>&#x</code> as data characters, use | ||
| 507 | wakaba | 1.6 | a named entity reference for the <code>&</code> character: |
| 508 | wakaba | 1.3 | <pre class="html example"><code>&amp;#x</code></pre> |
| 509 | </p> | ||
| 510 | </d:desc> | ||
| 511 | </d:item> | ||
| 512 | |||
| 513 | wakaba | 1.9 | <d:item name="bogus comment" |
| 514 | wakaba | 1.29 | modules="HTML::Parser"> |
| 515 | wakaba | 1.9 | <d:message xml:lang="en">String <code><!</code> is not followed |
| 516 | by <code>--</code>.</d:message> | ||
| 517 | <d:desc xml:lang="en"> | ||
| 518 | <p>There is a <code><</code> (<code>U+003C</code> | ||
| 519 | <code class="charname">LESS-THAN SIGN</code>) character | ||
| 520 | followed by a <code>!</code> (<code>U+0021</code> | ||
| 521 | <code class="charname">EXCLAMATION MARK</code>) character, | ||
| 522 | which is not followed by a <code>--</code> or | ||
| 523 | <code>!DOCTYPE</code>. The document is non-conforming.</p> | ||
| 524 | |||
| 525 | <dl class="switch"> | ||
| 526 | <dt>Comments</dt> | ||
| 527 | wakaba | 1.15 | <dd>In HTML document, comments must be introduced by |
| 528 | <code class="example"><!--</code> (<code><!</code> | ||
| 529 | <em>immediately</em> followed | ||
| 530 | wakaba | 1.9 | by <em>two</em> <code>-</code>s) and must be terminated by |
| 531 | wakaba | 1.15 | <code class="example">--></code>. |
| 532 | Strings <code><!</code> not followed | ||
| 533 | wakaba | 1.9 | by <code>--</code> and <code><!-</code> not followed by |
| 534 | <code>-</code> are not valid open delimiters for comments.</dd> | ||
| 535 | <dt>Marked sections, including <code>CDATA</code> sections</dt> | ||
| 536 | wakaba | 1.15 | <dd>Marked sections are not allowed in HTML document.</dd> |
| 537 | wakaba | 1.9 | <dt>Markup declarations</dt> |
| 538 | wakaba | 1.15 | <dd>Markup declarations, except for <code>DOCTYPE</code> |
| 539 | and comment declarations, are not allowed in HTML document.</dd> | ||
| 540 | wakaba | 1.9 | <dt>String <code><!</code></dt> |
| 541 | <dd>String <code><!</code> must be escaped as | ||
| 542 | wakaba | 1.15 | <code class="example">&lt;!</code>.</dd> |
| 543 | wakaba | 1.9 | </dl> |
| 544 | </d:desc> | ||
| 545 | </d:item> | ||
| 546 | |||
| 547 | wakaba | 1.7 | <d:item name="bogus end tag" |
| 548 | wakaba | 1.29 | modules="HTML::Parser"> |
| 549 | wakaba | 1.9 | <d:message xml:lang="en">String <code></</code> is not followed |
| 550 | by tag name.</d:message><!-- </ non-name-start-char-non-EOF --> | ||
| 551 | wakaba | 1.7 | <d:desc xml:lang="en"> |
| 552 | <p>There is a <code><</code> (<code>U+003C</code> | ||
| 553 | <code class="charname">LESS-THAN SIGN</code>) character | ||
| 554 | immediately followed by a <code>/</code> (<code>U+005F</code> | ||
| 555 | <code>SOLIDUS</code>) character, which is not part | ||
| 556 | of any end tag, in the input stream. The document | ||
| 557 | is non-conforming.</p> | ||
| 558 | |||
| 559 | <p>The <code></</code> sequence not followed by a | ||
| 560 | tag name is parsed as an opening of bogus comment.</p> | ||
| 561 | |||
| 562 | <p>The <code></</code> sequence as string data must | ||
| 563 | be escaped as: | ||
| 564 | <pre class="html example"><code>&lt;/</code></pre> | ||
| 565 | </p> | ||
| 566 | </d:desc> | ||
| 567 | </d:item> | ||
| 568 | |||
| 569 | wakaba | 1.29 | <d:item name="C1 character reference" |
| 570 | modules="HTML::Parser"> | ||
| 571 | <d:message xml:lang="en">Character reference to | ||
| 572 | <code><var>{text}</var></code> is not allowed.</d:message> | ||
| 573 | </d:item> | ||
| 574 | |||
| 575 | <d:item name="CR character reference" | ||
| 576 | modules="HTML::Parser"> | ||
| 577 | <d:message xml:lang="en">Character reference to | ||
| 578 | <code>U+000D</code> (<code class="charname">CARRIAGE RETURN</code>) | ||
| 579 | is not allowed.</d:message> | ||
| 580 | </d:item> | ||
| 581 | |||
| 582 | wakaba | 1.4 | <d:item name="dash in comment" |
| 583 | wakaba | 1.29 | modules="HTML::Parser"> |
| 584 | wakaba | 1.4 | <d:message xml:lang="en">There is a <code>--</code> sequence |
| 585 | in a comment.</d:message> | ||
| 586 | <d:desc xml:lang="en"> | ||
| 587 | <p>There is a <code>-</code> (<code>U+002D</code> | ||
| 588 | <code class="charname">HYPHEN-MINUS</code>) character | ||
| 589 | at the end of the comment or a <code>--</code> sequence | ||
| 590 | in the comment. The document is non-conforming.</p> | ||
| 591 | |||
| 592 | <p>Comments cannot contain a string <code>--</code>, as in XML. | ||
| 593 | Unlike SGML, there cannot be more than one comments | ||
| 594 | (where <i>comment</i> is an SGML term) in the comment | ||
| 595 | declaration.</p> | ||
| 596 | </d:desc> | ||
| 597 | </d:item> | ||
| 598 | |||
| 599 | wakaba | 1.1 | <d:item name="duplicate attribute" |
| 600 | wakaba | 1.29 | modules="HTML::Parser"> |
| 601 | wakaba | 1.6 | <d:message xml:lang="en">There are two attributes with name |
| 602 | wakaba | 1.29 | <code><var>{text}</var></code>.</d:message> |
| 603 | wakaba | 1.1 | <d:desc xml:lang="en"> |
| 604 | wakaba | 1.3 | <p>There are more than one attributes with the same |
| 605 | name in a tag. The document is non-conforming.</p> | ||
| 606 | wakaba | 1.1 | |
| 607 | <p>The <code>motion</code> attribute is not part of the HTML standard. | ||
| 608 | Use <code>img</code> element with animation GIF instead.</p> | ||
| 609 | </d:desc> | ||
| 610 | </d:item> | ||
| 611 | |||
| 612 | wakaba | 1.29 | <d:item name="empty start tag" |
| 613 | modules="HTML::Parser"> | ||
| 614 | <d:message xml:lang="en">Empty start tag (<code><></code>) is not | ||
| 615 | allowed.</d:message> | ||
| 616 | </d:item> | ||
| 617 | |||
| 618 | <d:item name="empty end tag" | ||
| 619 | modules="HTML::Parser"> | ||
| 620 | <d:message xml:lang="en">Empty end tag (<code></></code>) is not | ||
| 621 | allowed.</d:message> | ||
| 622 | </d:item> | ||
| 623 | |||
| 624 | <d:item name="end tag attribute" | ||
| 625 | modules="HTML::Parser"> | ||
| 626 | <d:message xml:lang="en">End tag cannot have attributes.</d:message> | ||
| 627 | wakaba | 1.41 | <d:message xml:lang="ja">終了タグに属性が指定されています。</d:message> |
| 628 | </d:item> | ||
| 629 | |||
| 630 | <d:item name="empty unquoted attribute value" | ||
| 631 | modules="HTML::Parser"> | ||
| 632 | <d:message xml:lang="en">Attribute value is not specified.</d:message> | ||
| 633 | <d:message xml:lang="ja">属性値が指定されていません。</d:message> | ||
| 634 | <d:desc xml:lang="en"> | ||
| 635 | <p>The attribute value is not specified after the <code>=</code> | ||
| 636 | (<code>U+003C</code> <code class="charname">EQUAL SIGN</code>) | ||
| 637 | character.</p> | ||
| 638 | |||
| 639 | <p>When an attribute value is empty, the <code>=</code> character after | ||
| 640 | the attribute name must be specified as:</p> | ||
| 641 | |||
| 642 | <p><code class="html example"><foo bar></code></p> | ||
| 643 | |||
| 644 | <p>Instead, quotation marks can be used to explicitly represent that | ||
| 645 | the attribute value is empty, as:</p> | ||
| 646 | |||
| 647 | <p><code class="html example"><foo bar=""></code></p> | ||
| 648 | |||
| 649 | <p>... or like:</p> | ||
| 650 | |||
| 651 | <p><code class="html example"><foo bar=''></code></p> | ||
| 652 | </d:desc> | ||
| 653 | wakaba | 1.29 | </d:item> |
| 654 | |||
| 655 | <d:item name="invalid character reference" | ||
| 656 | modules="HTML::Parser"> | ||
| 657 | <d:message xml:lang="en">Character reference to | ||
| 658 | <code><var>{text}</var></code> is not allowed.</d:message> | ||
| 659 | </d:item> | ||
| 660 | |||
| 661 | wakaba | 1.1 | <d:item name="nestc" |
| 662 | wakaba | 1.29 | modules="HTML::Parser"> |
| 663 | wakaba | 1.10 | <d:message xml:lang="en">Polytheistic slash (<code>/></code>) cannot be |
| 664 | wakaba | 1.1 | used for this element.</d:message> |
| 665 | <d:desc xml:lang="en"> | ||
| 666 | wakaba | 1.10 | <p>Polytheistic slash (<code>/></code>) must not be used |
| 667 | wakaba | 1.3 | for the element. The document is non-conforming.</p> |
| 668 | |||
| 669 | wakaba | 1.10 | <p>The polytheistic slash can only be |
| 670 | wakaba | 1.1 | used for <code>base</code>, <code>link</code>, <code>meta</code>, |
| 671 | <code>hr</code>, <code>br</code>, <code>img</code>, | ||
| 672 | <code>embed</code>, <code>param</code>, <code>area</code>, | ||
| 673 | wakaba | 1.3 | <code>col</code>, and <code>input</code> elements.</p> |
| 674 | wakaba | 1.1 | |
| 675 | wakaba | 1.12 | <dl class="switch"> |
| 676 | wakaba | 1.9 | <dt><code><script/></code></dt> |
| 677 | wakaba | 1.10 | <dd><p>The polytheistic slash cannot be used for <code>script</code> |
| 678 | wakaba | 1.9 | element. Even for an empty <code>script</code> element, |
| 679 | wakaba | 1.15 | there must be an explicit end tag |
| 680 | <code class="html example"></script></code>.</p> | ||
| 681 | wakaba | 1.9 | |
| 682 | <p><strong>NOTE</strong>: Though some user agents interpret | ||
| 683 | wakaba | 1.10 | polytheistic slash for <code>script</code> element as the |
| 684 | wakaba | 1.9 | closing of the element, such usage is not allowed under |
| 685 | the current standard.</p></dd> | ||
| 686 | <dt><code><basefont/></code>, <code><bgsound/></code>, | ||
| 687 | <code><frame/></code>, <code><keygen/></code>, | ||
| 688 | <code><spacer/></code>, <code><wbr/></code></dt> | ||
| 689 | <dd>These elements are themselves non-conforming.</dd> | ||
| 690 | <!-- isindex, image --> | ||
| 691 | <dt><code><command/></code>, <code><event-source/></code>, | ||
| 692 | wakaba | 1.12 | <code><nest/></code>, or <code><source/></code></dt> |
| 693 | wakaba | 1.9 | <dd>Future revision of HTML5 parsing algorithm is expected |
| 694 | wakaba | 1.10 | to allow polytheistic slash for these elements.</dd> |
| 695 | wakaba | 1.9 | <dt><code><a/></code>, <code><p/></code></dt> |
| 696 | <dd>These elements are not always empty and therefore | ||
| 697 | wakaba | 1.15 | polytheistic slash is not allowed. Use explicit end tag |
| 698 | to represent empty element as: | ||
| 699 | <pre class="example html"><code><p></p></code></pre> | ||
| 700 | </dd> | ||
| 701 | wakaba | 1.9 | </dl> |
| 702 | |||
| 703 | wakaba | 1.10 | <p>Note that, unlike in XML, the polytheistic slash has |
| 704 | wakaba | 1.1 | no effect in HTML.</p> |
| 705 | </d:desc> | ||
| 706 | </d:item> | ||
| 707 | |||
| 708 | wakaba | 1.29 | <d:item name="no DOCTYPE name" |
| 709 | modules="HTML::Parser"> | ||
| 710 | <d:message xml:lang="en">After the string <code><!DOCTYPE </code>, the | ||
| 711 | document type name must be specified.</d:message> | ||
| 712 | </d:item> | ||
| 713 | |||
| 714 | <d:item name="no PUBLIC literal" | ||
| 715 | modules="HTML::Parser"> | ||
| 716 | <d:message xml:lang="en">After the keyword <code>PUBLIC</code>, no | ||
| 717 | oublic identifier is specified.</d:message> | ||
| 718 | </d:item> | ||
| 719 | |||
| 720 | <d:item name="no refc" | ||
| 721 | modules="HTML::Parser"> | ||
| 722 | <d:message xml:lang="en">Character reference must be closed by a | ||
| 723 | <code>;</code> character.</d:message> | ||
| 724 | </d:item> | ||
| 725 | |||
| 726 | <d:item name="no space before DOCTYPE name" | ||
| 727 | modules="HTML::Parser"> | ||
| 728 | <d:message xml:lang="en">After the string <code><!DOCTYPE</code>, there | ||
| 729 | must be at least a white space character before the document type | ||
| 730 | name.</d:message> | ||
| 731 | </d:item> | ||
| 732 | |||
| 733 | <d:item name="no space between attributes" | ||
| 734 | modules="HTML::Parser"> | ||
| 735 | <d:message xml:lang="en">Attributes must be separeted by at least a | ||
| 736 | white space character.</d:message> | ||
| 737 | </d:item> | ||
| 738 | |||
| 739 | <d:item name="no SYSTEM literal" | ||
| 740 | modules="HTML::Parser"> | ||
| 741 | <d:message xml:lang="en">After the keyword <code>SYSTEM</code>, no | ||
| 742 | system identifier is specified.</d:message> | ||
| 743 | </d:item> | ||
| 744 | wakaba | 1.5 | |
| 745 | <d:item name="pio" | ||
| 746 | wakaba | 1.29 | modules="HTML::Parser"> |
| 747 | wakaba | 1.5 | <d:message xml:lang="en">Processing instruction |
| 748 | wakaba | 1.29 | (<code><?<var>...</var>></code>) is not allowed in HTML |
| 749 | document.</d:message> | ||
| 750 | wakaba | 1.5 | <d:desc xml:lang="en"> |
| 751 | <p>Processing instructions (<code><?<var>...</var>?></code>), | ||
| 752 | including XML declaration (<code><?xml <var>...</var>?></code>) | ||
| 753 | and XML style sheet <abbr title="processing instruction">PI</abbr> | ||
| 754 | wakaba | 1.9 | (<code><?xml-stylesheet <var>...</var>?></code>), are not allowed |
| 755 | wakaba | 1.5 | in the HTML syntax. The document is non-conforming.</p> |
| 756 | |||
| 757 | wakaba | 1.12 | <dl class="switch"> |
| 758 | <dt><code><?xbl?></code> (<abbr>XBL</abbr> Association)</dt> | ||
| 759 | <dd>An <abbr>XBL</abbr> binding cannot be associated by | ||
| 760 | <abbr title="processing instruction">PI</abbr> in <abbr>HTML</abbr> | ||
| 761 | document. Use <code>binding</code> property in <abbr>CSS</abbr> | ||
| 762 | wakaba | 1.15 | style sheet as: |
| 763 | <pre class="html example"><code><style> | ||
| 764 | p { | ||
| 765 | binding: url(binding.xbl); | ||
| 766 | } | ||
| 767 | </style></code></pre> | ||
| 768 | </dd> | ||
| 769 | wakaba | 1.9 | <dt><code><?xml?></code> (XML declaration)</dt> |
| 770 | <dd>XML declaration is unnecessary for HTML documents.</dd> | ||
| 771 | <dt><code><?xml-stylesheet?></code> (XML style sheet | ||
| 772 | wakaba | 1.12 | <abbr title="processing instruction">PI</abbr>)</dt> |
| 773 | wakaba | 1.9 | <dd>Use HTML <code>link</code> element with <code>rel</code> |
| 774 | attribute set to <code>stylesheet</code> (or, | ||
| 775 | <code>alternate stylesheet</code> for an alternate style | ||
| 776 | wakaba | 1.15 | sheet). |
| 777 | <pre class="example html"><code><link rel=stylesheet href="path/to/stylesheet.css"></code></pre> | ||
| 778 | </dd> | ||
| 779 | wakaba | 1.12 | <dt><code><?php?></code> or |
| 780 | <code><? <var>... <abbr>PHP</abbr> code ...</var> ?></code> | ||
| 781 | (<abbr>PHP</abbr> code)</dt> | ||
| 782 | wakaba | 1.9 | <dd>The conformance checker does <em>not</em> support |
| 783 | checking for PHP source documents.</dd> | ||
| 784 | <dt>Other processing instructions</dt> | ||
| 785 | <dd>Processing instructions cannot be inserted in an HTML | ||
| 786 | document. Use XML document or insert | ||
| 787 | <code>ProcessingInstruction</code> node by scripting.</dd> | ||
| 788 | </dl> | ||
| 789 | wakaba | 1.5 | |
| 790 | <p>Web browsers will parse processing instructions as bogus | ||
| 791 | comments. Some legacy Web browsers, such as IE:mac and | ||
| 792 | wakaba | 1.9 | some mobile Web browsers, will display processing instructions |
| 793 | wakaba | 1.5 | as string.</p> |
| 794 | </d:desc> | ||
| 795 | </d:item> | ||
| 796 | |||
| 797 | wakaba | 1.29 | <d:item name="string after DOCTYPE name" |
| 798 | modules="HTML::Parser"> | ||
| 799 | <d:message xml:lang="en">There is a bogus string after the document type | ||
| 800 | name.</d:message> | ||
| 801 | </d:item> | ||
| 802 | |||
| 803 | <d:item name="string after PUBLIC" | ||
| 804 | modules="HTML::Parser"> | ||
| 805 | <d:message xml:lang="en">There is a bogus string after the keyword | ||
| 806 | <code>PUBLIC</code>.</d:message> | ||
| 807 | </d:item> | ||
| 808 | |||
| 809 | <d:item name="string after PUBLIC literal" | ||
| 810 | modules="HTML::Parser"> | ||
| 811 | <d:message xml:lang="en">There is a bogus string after the public | ||
| 812 | identifier.</d:message> | ||
| 813 | </d:item> | ||
| 814 | |||
| 815 | <d:item name="string after SYSTEM" | ||
| 816 | modules="HTML::Parser"> | ||
| 817 | <d:message xml:lang="en">There is a bogus string after the keyword | ||
| 818 | <code>SYSTEM</code>.</d:message> | ||
| 819 | </d:item> | ||
| 820 | |||
| 821 | <d:item name="string after SYSTEM literal" | ||
| 822 | modules="HTML::Parser"> | ||
| 823 | <d:message xml:lang="en">There is a bogus string after the system | ||
| 824 | identifier.</d:message> | ||
| 825 | </d:item> | ||
| 826 | |||
| 827 | <d:item name="unclosed attribute value" | ||
| 828 | modules="HTML::Parser"> | ||
| 829 | <d:message xml:lang="en">Attribute value is not closed by a quotation | ||
| 830 | mark.</d:message> | ||
| 831 | </d:item> | ||
| 832 | |||
| 833 | <d:item name="unclosed comment" | ||
| 834 | modules="HTML::Parser"> | ||
| 835 | <d:message xml:lang="en">Comment is not closed by a string | ||
| 836 | <code>--></code>.</d:message> | ||
| 837 | </d:item> | ||
| 838 | |||
| 839 | <d:item name="unclosed DOCTYPE" | ||
| 840 | modules="HTML::Parser"> | ||
| 841 | <d:message xml:lang="en">The <code>DOCTYPE</code> is not closed by a | ||
| 842 | <code>></code> character.</d:message> | ||
| 843 | </d:item> | ||
| 844 | |||
| 845 | <d:item name="unclosed PUBLIC literal" | ||
| 846 | modules="HTML::Parser"> | ||
| 847 | <d:message xml:lang="en">The public identifier literal is not closed by a | ||
| 848 | quotation mark.</d:message> | ||
| 849 | </d:item> | ||
| 850 | |||
| 851 | <d:item name="unclosed SYSTEM literal" | ||
| 852 | modules="HTML::Parser"> | ||
| 853 | <d:message xml:lang="en">The system identifier literal is not closed by a | ||
| 854 | quotation mark.</d:message> | ||
| 855 | </d:item> | ||
| 856 | |||
| 857 | <d:item name="unclosed tag" | ||
| 858 | modules="HTML::Parser"> | ||
| 859 | <d:message xml:lang="en">Tag is not closed by a <code>></code> | ||
| 860 | character.</d:message> | ||
| 861 | </d:item> | ||
| 862 | |||
| 863 | wakaba | 1.1 | </section> |
| 864 | |||
| 865 | wakaba | 1.2 | <section id="html5-parse-errors"> |
| 866 | <h2>HTML5 Parse Errors in Tree Construction Stage</h2> | ||
| 867 | |||
| 868 | wakaba | 1.42 | <d:item name="after after frameset" |
| 869 | modules="HTML::Parser"> | ||
| 870 | <d:message xml:lang="en">There is a start tag | ||
| 871 | <code><<var>{text}</var>></code> is after the <code>html</code> element | ||
| 872 | is closed.</d:message> | ||
| 873 | <d:message xml:lang="ja"><code>html</code> 要素が閉じられた後に開始タグ | ||
| 874 | <code><<var>{text}</var>></code> があります。</d:message> | ||
| 875 | </d:item> | ||
| 876 | |||
| 877 | <d:item name="after after frameset:/" | ||
| 878 | modules="HTML::Parser"> | ||
| 879 | <d:message xml:lang="en">There is an end tag | ||
| 880 | <code></<var>{text}</var>></code> is after the <code>html</code> element | ||
| 881 | is closed.</d:message> | ||
| 882 | <d:message xml:lang="ja"><code>html</code> 要素が閉じられた後に終了タグ | ||
| 883 | <code></<var>{text}</var>></code> があります。</d:message> | ||
| 884 | </d:item> | ||
| 885 | |||
| 886 | wakaba | 1.29 | <d:item name="after body" |
| 887 | modules="HTML::Parser"> | ||
| 888 | <d:message xml:lang="en">Start tag <code><<var>{text}</var>></code> is | ||
| 889 | not allowed after the <code>body</code> is closed.</d:message> | ||
| 890 | </d:item> | ||
| 891 | |||
| 892 | <d:item name="after body:/" | ||
| 893 | modules="HTML::Parser"> | ||
| 894 | <d:message xml:lang="en">End tag <code></<var>{text}</var>></code> is | ||
| 895 | not allowed after the <code>body</code> is closed.</d:message> | ||
| 896 | </d:item> | ||
| 897 | |||
| 898 | <d:item name="after body:#text" | ||
| 899 | modules="HTML::Parser"> | ||
| 900 | <d:message xml:lang="en">Non‐white‐space characters are not allowed | ||
| 901 | after the <code>body</code> is closed.</d:message> | ||
| 902 | </d:item> | ||
| 903 | |||
| 904 | <d:item name="after frameset" | ||
| 905 | modules="HTML::Parser"> | ||
| 906 | <d:message xml:lang="en">Start tag <code><<var>{text}</var>></code> is | ||
| 907 | not allowed after the <code>frameset</code> is closed.</d:message> | ||
| 908 | </d:item> | ||
| 909 | |||
| 910 | <d:item name="after frameset:/" | ||
| 911 | modules="HTML::Parser"> | ||
| 912 | <d:message xml:lang="en">End tag <code></<var>{text}</var>></code> is | ||
| 913 | not allowed after the <code>frameset</code> is closed.</d:message> | ||
| 914 | </d:item> | ||
| 915 | |||
| 916 | <d:item name="after frameset:#text" | ||
| 917 | modules="HTML::Parser"> | ||
| 918 | <d:message xml:lang="en">Non‐white‐space characters are not allowed | ||
| 919 | after the <code>frame</code> is closed.</d:message> | ||
| 920 | </d:item> | ||
| 921 | |||
| 922 | wakaba | 1.2 | <d:item name="after head" |
| 923 | wakaba | 1.39 | modules="HTML::Parser"> |
| 924 | wakaba | 1.29 | <d:message xml:lang="en">The <code><var>{text}</var></code> element cannot be |
| 925 | inserted between <code>head</code> and <code>body</code> | ||
| 926 | elements.</d:message> | ||
| 927 | wakaba | 1.2 | <d:desc xml:lang="en"> |
| 928 | wakaba | 1.3 | <p>A start tag appears after the <code>head</code> element is closed |
| 929 | wakaba | 1.2 | but before the <code>body</code> element is opened. |
| 930 | The document is non-conforming.</p> | ||
| 931 | </d:desc> | ||
| 932 | </d:item> | ||
| 933 | |||
| 934 | wakaba | 1.29 | <d:item name="after html" |
| 935 | modules="HTML::Parser"> | ||
| 936 | <d:message xml:lang="en">Start tag <code><<var>{text}</var>></code> is | ||
| 937 | not allowed after the <code>html</code> is closed.</d:message> | ||
| 938 | wakaba | 1.39 | <d:desc xml:lang="en"> |
| 939 | <p>The start tag of an element appears after the | ||
| 940 | <code>body</code> element has been closed. The document is | ||
| 941 | non-conforming.</p> | ||
| 942 | |||
| 943 | <p>Any content of the document other than <code>head</code> | ||
| 944 | contents and comments must be put into the <code>body</code> | ||
| 945 | element.</p> | ||
| 946 | </d:desc> | ||
| 947 | wakaba | 1.29 | </d:item> |
| 948 | |||
| 949 | <d:item name="after html:/" | ||
| 950 | modules="HTML::Parser"> | ||
| 951 | <d:message xml:lang="en">End tag <code></<var>{text}</var>></code> is | ||
| 952 | not allowed after the <code>html</code> is closed.</d:message> | ||
| 953 | wakaba | 1.39 | <d:desc xml:lang="en"> |
| 954 | <p>The end tag of an element appears after the | ||
| 955 | <code>body</code> element has been closed. The document is | ||
| 956 | non-conforming.</p> | ||
| 957 | |||
| 958 | <p>Any content of the document other than <code>head</code> | ||
| 959 | contents and comments must be put into the <code>body</code> | ||
| 960 | element.</p> | ||
| 961 | </d:desc> | ||
| 962 | wakaba | 1.29 | </d:item> |
| 963 | |||
| 964 | <d:item name="after html:#text" | ||
| 965 | modules="HTML::Parser"> | ||
| 966 | <d:message xml:lang="en">Non‐white‐space characters are not allowed | ||
| 967 | after the <code>html</code> is closed.</d:message> | ||
| 968 | </d:item> | ||
| 969 | |||
| 970 | <d:item name="image" | ||
| 971 | modules="HTML::Parser"> | ||
| 972 | <d:message xml:lang="en">The <code>image</code> element is | ||
| 973 | obsolete.</d:message> | ||
| 974 | wakaba | 1.4 | </d:item> |
| 975 | |||
| 976 | wakaba | 1.5 | <d:item name="in a:a" |
| 977 | wakaba | 1.29 | modules="HTML::Parser"> |
| 978 | wakaba | 1.5 | <d:message xml:lang="en">Anchor cannot be nested.</d:message> |
| 979 | <d:desc xml:lang="en"> | ||
| 980 | <p>HTML <code>a</code> elements cannot be nested. | ||
| 981 | The document is non-conforming.</p> | ||
| 982 | |||
| 983 | <p>In the HTML syntax, a start tag of the <code>a</code> | ||
| 984 | implies the end tag of any opening <code>a</code> element.</p> | ||
| 985 | </d:desc> | ||
| 986 | </d:item> | ||
| 987 | |||
| 988 | wakaba | 1.4 | <d:item name="in body" |
| 989 | wakaba | 1.29 | modules="HTML::Parser"> |
| 990 | <d:message xml:lang="en">Start tag <code><<var>{text}</var>></code> | ||
| 991 | wakaba | 1.9 | is not allowed in the <code>body</code> element.</d:message> |
| 992 | wakaba | 1.4 | <d:desc xml:lang="en"> |
| 993 | <p>The start or end tag of an element, which | ||
| 994 | cannot be a descendant of <code>body</code> element, appears | ||
| 995 | in the input stream while the <code>body</code> element has been opened. | ||
| 996 | The document is non-conforming.</p> | ||
| 997 | </d:desc> | ||
| 998 | </d:item> | ||
| 999 | |||
| 1000 | wakaba | 1.29 | <d:item name="in body:#eof" |
| 1001 | modules="HTML::Parser"> | ||
| 1002 | <d:message xml:lang="en">Some element is not closed before the end of | ||
| 1003 | file.</d:message> | ||
| 1004 | </d:item> | ||
| 1005 | |||
| 1006 | <d:item name="in button:button" | ||
| 1007 | modules="HTML::Parser"> | ||
| 1008 | <d:message xml:lang="en">The <code>button</code> element cannot be | ||
| 1009 | nested.</d:message> | ||
| 1010 | </d:item> | ||
| 1011 | |||
| 1012 | <d:item name="in CDATA:#eof" | ||
| 1013 | modules="HTML::Parser"> | ||
| 1014 | <d:message xml:lang="en">Element is not closed before the end of | ||
| 1015 | file.</d:message> | ||
| 1016 | </d:item> | ||
| 1017 | |||
| 1018 | <d:item name="in form:form" | ||
| 1019 | modules="HTML::Parser"> | ||
| 1020 | <d:message xml:lang="en">Start tag <code><form></code> is | ||
| 1021 | not allowed in a <code>form</code> element.</d:message> | ||
| 1022 | </d:item> | ||
| 1023 | |||
| 1024 | <d:item name="in frameset" | ||
| 1025 | modules="HTML::Parser"> | ||
| 1026 | <d:message xml:lang="en">Start tag <code><<var>{text}</var>></code> is | ||
| 1027 | not allowed in a <code>framset</code> element.</d:message> | ||
| 1028 | </d:item> | ||
| 1029 | |||
| 1030 | <d:item name="in frameset:/" | ||
| 1031 | modules="HTML::Parser"> | ||
| 1032 | <d:message xml:lang="en">End tag <code></<var>{text}</var>></code> is | ||
| 1033 | not allowed in a <code>frameset</code> element.</d:message> | ||
| 1034 | </d:item> | ||
| 1035 | |||
| 1036 | <d:item name="in frameset:#text" | ||
| 1037 | modules="HTML::Parser"> | ||
| 1038 | <d:message xml:lang="en">Non‐white‐space characters are not allowed | ||
| 1039 | in a <code>frameset</code> element.</d:message> | ||
| 1040 | </d:item> | ||
| 1041 | |||
| 1042 | wakaba | 1.5 | <d:item name="in head:head" |
| 1043 | wakaba | 1.29 | modules="HTML::Parser"> |
| 1044 | wakaba | 1.9 | <d:message xml:lang="en">Start tag <code><head></code> |
| 1045 | wakaba | 1.5 | is not allowed in the <code>head</code> element.</d:message> |
| 1046 | <d:desc xml:lang="en"> | ||
| 1047 | <p>There is a start tag <code><head></code> in the | ||
| 1048 | <code><head></code> element. The document is non-conforming.</p> | ||
| 1049 | |||
| 1050 | <p>In an HTML document there must not be more than | ||
| 1051 | one <code>head</code> element, therefore no more than one | ||
| 1052 | start tag <code><head></code> can appear in the input stream.</p> | ||
| 1053 | </d:desc> | ||
| 1054 | </d:item> | ||
| 1055 | |||
| 1056 | wakaba | 1.29 | <d:item name="in html:#DOCTYPE" |
| 1057 | modules="HTML::Parser"> | ||
| 1058 | <d:message xml:lang="en">A <code>DOCTYPE</code> appears after any | ||
| 1059 | element or data character has been seen.</d:message> | ||
| 1060 | <!-- <!DOCTYPE HTML><!DOCTYPE HTML> --> | ||
| 1061 | <!-- <html><!DOCTYPE HTML> --> | ||
| 1062 | <d:desc xml:lang="en"> | ||
| 1063 | <p>A <code>DOCTYPE</code> appears after any element or data character | ||
| 1064 | has been seen. The document is non-conforming.</p> | ||
| 1065 | |||
| 1066 | <p>The <code>DOCTYPE</code> must be placed before any | ||
| 1067 | tag, reference, or data character. Only white space characters | ||
| 1068 | and comments can be inserted before the <code>DOCTYPE</code>.</p> | ||
| 1069 | </d:desc> | ||
| 1070 | </d:item> | ||
| 1071 | |||
| 1072 | <d:item name="in nobr:nobr" | ||
| 1073 | modules="HTML::Parser"> | ||
| 1074 | <d:message xml:lang="en">The <code>nobr</code> element cannot be | ||
| 1075 | nested.</d:message> | ||
| 1076 | </d:item> | ||
| 1077 | |||
| 1078 | <d:item name="in noscript" | ||
| 1079 | modules="HTML::Parser"> | ||
| 1080 | <d:message xml:lang="en">The <code><var>{text}</var></code> element is not | ||
| 1081 | allowed in a <code>noscript</code> element in the | ||
| 1082 | <code>head</code> element.</d:message> | ||
| 1083 | </d:item> | ||
| 1084 | |||
| 1085 | <d:item name="in noscript:/" | ||
| 1086 | modules="HTML::Parser"> | ||
| 1087 | <d:message xml:lang="en">An end tag <code></<var>{text}</var>></code> | ||
| 1088 | appers before the <code>noscript</code> element is closed.</d:message> | ||
| 1089 | </d:item> | ||
| 1090 | |||
| 1091 | <d:item name="in noscript:#eof" | ||
| 1092 | modules="HTML::Parser"> | ||
| 1093 | <d:message xml:lang="en">A <code>noscript</code> element is not closed | ||
| 1094 | before the end of file.</d:message> | ||
| 1095 | </d:item> | ||
| 1096 | |||
| 1097 | <d:item name="in noscript:#text" | ||
| 1098 | modules="HTML::Parser"> | ||
| 1099 | <d:message xml:lang="en">Non‐white‐space characters are not allowed | ||
| 1100 | in a <code>noscript</code> element in the <code>head</code> | ||
| 1101 | element.</d:message> | ||
| 1102 | </d:item> | ||
| 1103 | |||
| 1104 | <d:item name="in PCDATA:#eof" | ||
| 1105 | modules="HTML::Parser"> | ||
| 1106 | <d:message xml:lang="en">Element is not closed before the end of | ||
| 1107 | file.</d:message> | ||
| 1108 | </d:item> | ||
| 1109 | |||
| 1110 | <d:item name="in select" | ||
| 1111 | modules="HTML::Parser"> | ||
| 1112 | <d:message xml:lang="en">Start tag <code><<var>{text}</var>></code> | ||
| 1113 | is not allowed in a <code>select</code> element.</d:message> | ||
| 1114 | </d:item> | ||
| 1115 | |||
| 1116 | <d:item name="in select:/" | ||
| 1117 | modules="HTML::Parser"> | ||
| 1118 | <d:message xml:lang="en">End tag <code></<var>{text}</var>></code> | ||
| 1119 | is not allowed in a <code>select</code> element.</d:message> | ||
| 1120 | </d:item> | ||
| 1121 | |||
| 1122 | wakaba | 1.3 | <d:item name="in table" |
| 1123 | wakaba | 1.29 | modules="HTML::Parser"> |
| 1124 | <d:message xml:lang="en">Start tag <code><<var>{text}</var>></code> | ||
| 1125 | wakaba | 1.5 | is not allowed in a <code>table</code> element.</d:message> |
| 1126 | wakaba | 1.3 | <d:desc xml:lang="en"> |
| 1127 | wakaba | 1.4 | <p>The start or end tag of an element, which |
| 1128 | cannot be a child of <code>table</code> element, appears | ||
| 1129 | in the input stream while the <code>table</code> element has been opened | ||
| 1130 | but no other element has been opened. The document is non-conforming.</p> | ||
| 1131 | wakaba | 1.3 | |
| 1132 | <p>In <code>table</code>, only table related elements | ||
| 1133 | are allowed; any other element must be contained in | ||
| 1134 | <code>td</code> or <code>th</code> element to form | ||
| 1135 | a part of the table, or <code>caption</code> element to create | ||
| 1136 | a table caption.</p> | ||
| 1137 | </d:desc> | ||
| 1138 | </d:item> | ||
| 1139 | |||
| 1140 | wakaba | 1.29 | <d:item name="in table:/" |
| 1141 | modules="HTML::Parser"> | ||
| 1142 | <d:message xml:lang="en">End tag <code></<var>{text}</var>></code> | ||
| 1143 | is not allowed in a <code>table</code> element.</d:message> | ||
| 1144 | </d:item> | ||
| 1145 | |||
| 1146 | <d:item name="in table:#text" | ||
| 1147 | modules="HTML::Parser"> | ||
| 1148 | <d:message xml:lang="en">Non‐white‐space character is not allowed within | ||
| 1149 | the <code>table</code> element, outside of the caption and cells.</d:message> | ||
| 1150 | wakaba | 1.3 | <d:desc xml:lang="en"> |
| 1151 | wakaba | 1.29 | <p>A non‐white‐space character appears in <code>table</code>. |
| 1152 | The document is non-conforming.</p> | ||
| 1153 | wakaba | 1.3 | |
| 1154 | <p>In <code>table</code>, only table related elements | ||
| 1155 | are allowed; any other element and data character must be contained in | ||
| 1156 | <code>td</code> or <code>th</code> element to form | ||
| 1157 | a part of the table, or <code>caption</code> element to create | ||
| 1158 | a table caption.</p> | ||
| 1159 | </d:desc> | ||
| 1160 | </d:item> | ||
| 1161 | |||
| 1162 | wakaba | 1.29 | <d:item name="isindex" |
| 1163 | modules="HTML::Parser"> | ||
| 1164 | <d:message xml:lang="en">The <code>isindex</code> element is | ||
| 1165 | obsolete.</d:message> | ||
| 1166 | </d:item> | ||
| 1167 | |||
| 1168 | wakaba | 1.3 | <d:item name="missing start tag:tr" |
| 1169 | wakaba | 1.29 | modules="HTML::Parser"> |
| 1170 | wakaba | 1.3 | <d:message xml:lang="en">Start tag of <code>tr</code> |
| 1171 | element is missing.</d:message> | ||
| 1172 | <d:desc> | ||
| 1173 | <p>Start tag of a <code>tr</code> element, which is <em>not</em> | ||
| 1174 | optional, is missing. The document is non-conforming.</p> | ||
| 1175 | |||
| 1176 | <p>In a table section, a <code><tr></code> start tag | ||
| 1177 | must occur before any <code><td></code> or | ||
| 1178 | <code><th></code> start tag. Though the HTML5 parser | ||
| 1179 | implies the <code><tr></code> start tag before | ||
| 1180 | these start tags, it must be explicitly specified.</p> | ||
| 1181 | </d:desc> | ||
| 1182 | </d:item> | ||
| 1183 | |||
| 1184 | wakaba | 1.2 | <d:item name="no DOCTYPE" |
| 1185 | wakaba | 1.29 | class="parse-error" |
| 1186 | modules="HTML::Parser"> | ||
| 1187 | wakaba | 1.6 | <d:message xml:lang="en">This document does not start with a |
| 1188 | wakaba | 1.3 | <code>DOCTYPE</code>.</d:message> |
| 1189 | <d:desc> | ||
| 1190 | <p>The document does not start with a <code>DOCTYPE</code>. | ||
| 1191 | The document is non-conforming.</p> | ||
| 1192 | |||
| 1193 | <p>An HTML document must start by a <code>DOCTYPE</code>: | ||
| 1194 | <pre class="html example"><code><!DOCTYPE HTML></code></pre> | ||
| 1195 | </p> | ||
| 1196 | |||
| 1197 | <p>Only white space characters and comments are allowed | ||
| 1198 | wakaba | 1.12 | before the <code>DOCTYPE</code>. XML declaration is <em>not</em> |
| 1199 | allowed in HTML document.</p> | ||
| 1200 | wakaba | 1.3 | </d:desc> |
| 1201 | wakaba | 1.2 | </d:item> |
| 1202 | |||
| 1203 | <d:item name="not closed" | ||
| 1204 | wakaba | 1.29 | class="parse-error" |
| 1205 | modules="HTML::Parser"> | ||
| 1206 | <d:message xml:lang="en">Element <code><var>{text}</var></code> is not | ||
| 1207 | wakaba | 1.2 | closed.</d:message> |
| 1208 | wakaba | 1.3 | <d:desc> |
| 1209 | <p>End tag of an element is not found before, for example, | ||
| 1210 | an end tag of another element appears or | ||
| 1211 | the end of the document. The document is non-conforming.</p> | ||
| 1212 | wakaba | 1.10 | |
| 1213 | wakaba | 1.11 | <p>Only <code>body</code>, <code>colgroup</code>, <code>dd</code>, |
| 1214 | <code>dt</code>, <code>head</code>, <code>html</code>, <code>li</code>, | ||
| 1215 | wakaba | 1.10 | <code>ol</code>, <code>option</code>, <code>optgroup</code>, |
| 1216 | wakaba | 1.11 | <code>p</code>, <code>rb</code>, <code>rp</code>, <code>rt</code>, |
| 1217 | <code>tbody</code>, <code>td</code>, <code>tfoot</code>, | ||
| 1218 | <code>th</code>, <code>thead</code>, <code>tr</code>, | ||
| 1219 | <code>ul</code> end tag can be omitted in HTML documents. | ||
| 1220 | wakaba | 1.10 | For any element except for void element, there must be an explicit |
| 1221 | end tag.</p> | ||
| 1222 | |||
| 1223 | wakaba | 1.12 | <dl class="switch"> |
| 1224 | <dt>HTML <code>canvas</code> element</dt> | ||
| 1225 | <dd>Though the element is void in earlier versions of Safari, | ||
| 1226 | the <code>canvas</code> element is <em>no</em> longer | ||
| 1227 | defined as empty. There must be an end tag | ||
| 1228 | wakaba | 1.15 | <code class="html example"></canvas></code>.</dd> |
| 1229 | wakaba | 1.12 | </dl> |
| 1230 | |||
| 1231 | wakaba | 1.10 | <p>Note that misnesting tags, such as |
| 1232 | <code class="bad example"><a><b></a></b></code>, are not | ||
| 1233 | allowed and they also cause this error.</p> | ||
| 1234 | wakaba | 1.3 | </d:desc> |
| 1235 | wakaba | 1.2 | </d:item> |
| 1236 | |||
| 1237 | wakaba | 1.6 | <d:item name="not first start tag" |
| 1238 | wakaba | 1.29 | class="parse-error" |
| 1239 | modules="HTML::Parser"> | ||
| 1240 | wakaba | 1.6 | <d:message xml:lang="en">This <code><html></code> tag is not |
| 1241 | the first start tag.</d:message> | ||
| 1242 | <d:desc> | ||
| 1243 | <p>There is a start tag of the <code>html</code> element | ||
| 1244 | that it not the first start tag in the input stream. | ||
| 1245 | The document is non-conforming.</p> | ||
| 1246 | |||
| 1247 | <p>In an HTML document, there cannot be more than one | ||
| 1248 | <code>html</code> element and therefore there cannot be | ||
| 1249 | more than one <code><html></code> tag. In addition, | ||
| 1250 | nothing can be placed before the <code><html></code> tag | ||
| 1251 | except a <code>DOCTYPE</code>, white space characters, | ||
| 1252 | and comments.</p> | ||
| 1253 | </d:desc> | ||
| 1254 | </d:item> | ||
| 1255 | |||
| 1256 | wakaba | 1.2 | <d:item name="not HTML5" |
| 1257 | wakaba | 1.29 | class="parse-error" |
| 1258 | modules="HTML::Parser"> | ||
| 1259 | wakaba | 1.2 | <d:message xml:lang="en">This document is written in an old version of |
| 1260 | HTML.</d:message> | ||
| 1261 | wakaba | 1.3 | <d:desc xml:lang="en"> |
| 1262 | <p>The document contains a <code>DOCTYPE</code> declaration | ||
| 1263 | wakaba | 1.6 | that is different from HTML5 <code>DOCTYPE</code> (i.e. |
| 1264 | wakaba | 1.15 | <code class="example html"><!DOCTYPE HTML></code>). |
| 1265 | The document is non‐conforming.</p> | ||
| 1266 | wakaba | 1.3 | |
| 1267 | <p>The document might or might not be conformant to | ||
| 1268 | some version of HTML. However, conformance to any HTML | ||
| 1269 | specification other than HTML5 provides for no practical | ||
| 1270 | convenience, since Web borwsers will parse any | ||
| 1271 | HTML document (roughly) as defined in HTML5.</p> | ||
| 1272 | </d:desc> | ||
| 1273 | wakaba | 1.2 | </d:item> |
| 1274 | |||
| 1275 | wakaba | 1.29 | <d:item name="start tag not allowed" |
| 1276 | class="parse-error" | ||
| 1277 | modules="HTML::Parser"> | ||
| 1278 | <d:message xml:lang="en">Start tag <code><<var>{text}</var>></code> is | ||
| 1279 | not allowed here.</d:message> | ||
| 1280 | </d:item> | ||
| 1281 | |||
| 1282 | wakaba | 1.2 | <d:item name="unmatched end tag" |
| 1283 | wakaba | 1.29 | class="parse-error" |
| 1284 | modules="HTML::Parser"> | ||
| 1285 | <d:message xml:lang="en">Element <code><var>{text}</var></code> is not | ||
| 1286 | wakaba | 1.2 | opened.</d:message> |
| 1287 | wakaba | 1.4 | <d:desc> |
| 1288 | <p>An end tag appears though no element with the same name | ||
| 1289 | has been opened. The document is non-conforming.</p> | ||
| 1290 | |||
| 1291 | <p>For any end tag in HTML document, there must be a | ||
| 1292 | corresponding start tag.</p> | ||
| 1293 | wakaba | 1.12 | |
| 1294 | <dl class="switch"> | ||
| 1295 | <dt>HTML <code>base</code>, <code>basefont</code>, | ||
| 1296 | <code>bgsound</code>, <code>br</code>, <code>col</code>, | ||
| 1297 | <code>embed</code>, <code>frame</code>, <code>hr</code>, | ||
| 1298 | <code>image</code>, <code>img</code>, <code>input</code>, | ||
| 1299 | <code>isindex</code>, <code>link</code>, <code>meta</code>, | ||
| 1300 | <code>param</code>, <code>spacer</code>, or <code>wbr</code> element</dt> | ||
| 1301 | <dd>End tag is not allowed for these elements, since | ||
| 1302 | those content must always be empty. Remove end tag.</dd> | ||
| 1303 | <!-- keygen --> | ||
| 1304 | <!-- command, event-source, nest, source --> | ||
| 1305 | </dl> | ||
| 1306 | wakaba | 1.4 | </d:desc> |
| 1307 | wakaba | 1.2 | </d:item> |
| 1308 | |||
| 1309 | wakaba | 1.43 | <d:item name="XSLT-compat" |
| 1310 | modules="HTML::Parser"> | ||
| 1311 | <d:message xml:lang="en">The <code>DOCTYPE</code> legacy string is | ||
| 1312 | used.</d:message> | ||
| 1313 | <d:message xml:lang="ja"><code>DOCTYPE</code> | ||
| 1314 | 遺物文字列が使われています。</d:message> | ||
| 1315 | <d:desc xml:lang="en"> | ||
| 1316 | <p>The <code>DOCTYPE</code> with the <code>DOCTYPE</code> legacy | ||
| 1317 | string, i.e. | ||
| 1318 | <code class="html bad example"><!DOCTYPE HTML PUBLIC "XSLT-compat"></code> | ||
| 1319 | is used.</p> | ||
| 1320 | |||
| 1321 | <p>The <code>DOCTYPE</code> legacy string should not be used for documents | ||
| 1322 | wakaba | 1.45 | <em>not</em> generated from XSLT transformation process. It is allowed |
| 1323 | only to enable to use XSLT style sheets with the HTML output mode, which | ||
| 1324 | does not support generation of the <code>DOCTYPE</code> with no | ||
| 1325 | <code>PUBLIC</code> | ||
| 1326 | wakaba | 1.43 | identifier. For other purposes, the <code>DOCTYPE</code> legacy |
| 1327 | string, i.e. <code class="html bad example">PUBLIC "XSLT-compat"</code>, | ||
| 1328 | is useless and should not be used.</p> | ||
| 1329 | </d:desc> | ||
| 1330 | </d:item> | ||
| 1331 | |||
| 1332 | wakaba | 1.2 | </section> |
| 1333 | |||
| 1334 | wakaba | 1.1 | <section id="element-content-model-errors"> |
| 1335 | <h2>Element Content Model Errors</h2> | ||
| 1336 | |||
| 1337 | wakaba | 1.30 | <d:item name="basehref after URL attribute" |
| 1338 | modules="ContentChecker::HTML"> | ||
| 1339 | <d:message xml:lang="en">The <code>base</code> element with the | ||
| 1340 | <code>href</code> attribute specified cannot be placed after | ||
| 1341 | any attribute with a URL.</d:message> | ||
| 1342 | </d:item> | ||
| 1343 | |||
| 1344 | <d:item name="basetarget after hyperlink" | ||
| 1345 | modules="ContentChecker::HTML"> | ||
| 1346 | <d:message xml:lang="en">The <code>base</code> element with the | ||
| 1347 | <code>target</code> attribute specified cannot be placed after | ||
| 1348 | any element that defines a hyperlink.</d:message> | ||
| 1349 | </d:item> | ||
| 1350 | |||
| 1351 | wakaba | 1.1 | <d:item name="character not allowed" |
| 1352 | wakaba | 1.32 | modules="ContentChecker::HTML RDFXML"> |
| 1353 | wakaba | 1.1 | <d:message xml:lang="en">Data character is not allowed in this |
| 1354 | context.</d:message> | ||
| 1355 | <d:desc xml:lang="en"> | ||
| 1356 | wakaba | 1.3 | <p>A data character appears where it is not allowed in this |
| 1357 | wakaba | 1.1 | context. The document is non-conforming.</p> |
| 1358 | |||
| 1359 | <p>Possible causes: | ||
| 1360 | wakaba | 1.6 | <ul> |
| 1361 | <li><p>A data character cannot be a child | ||
| 1362 | of certain sectioning elements such as <code>body</code>, | ||
| 1363 | <code>section</code>, and <code>blockquote</code>.</p> | ||
| 1364 | |||
| 1365 | <p>Any inline-level content must be put | ||
| 1366 | in e.g. paragraph element such as <code>p</code>.</p></li> | ||
| 1367 | <li><p>Though some elements such as <code>div</code>, | ||
| 1368 | <code>li</code>, and <code>td</code> allow | ||
| 1369 | <em>either one</em> of block-level or inline-level content | ||
| 1370 | is allowed. If there is a block-level content, | ||
| 1371 | any inline-level content must be put | ||
| 1372 | in e.g. paragraph element such as <code>p</code>.</p></li> | ||
| 1373 | </ul> | ||
| 1374 | wakaba | 1.1 | </p> |
| 1375 | </d:desc> | ||
| 1376 | </d:item> | ||
| 1377 | |||
| 1378 | wakaba | 1.30 | <d:item name="character not allowed:empty" |
| 1379 | modules="ContentChecker::HTML"> | ||
| 1380 | <d:message xml:lang="en">Non‐white‐space characters are not allowed in | ||
| 1381 | an empty element.</d:message> | ||
| 1382 | </d:item> | ||
| 1383 | |||
| 1384 | wakaba | 1.31 | <d:item name="character not allowed:atom|PersonConstruct" |
| 1385 | modules="ContentChecker::HTML"> | ||
| 1386 | <d:message xml:lang="en">Non‐white‐space characters are not allowed in | ||
| 1387 | Person construct.</d:message> | ||
| 1388 | </d:item> | ||
| 1389 | |||
| 1390 | <d:item name="character not allowed:atom|TextConstruct" | ||
| 1391 | modules="ContentChecker::HTML"> | ||
| 1392 | <d:message xml:lang="en">Non‐white‐space characters are not allowed in | ||
| 1393 | Text construct.</d:message> | ||
| 1394 | </d:item> | ||
| 1395 | |||
| 1396 | wakaba | 1.1 | <d:item name="child element missing" |
| 1397 | wakaba | 1.31 | modules="ContentChecker::HTML ContentChecker::Atom"> |
| 1398 | <d:message xml:lang="en">There must be an element | ||
| 1399 | <code><var>{text}</var></code> as a child of this element.</d:message> | ||
| 1400 | wakaba | 1.1 | <d:desc xml:lang="en"> |
| 1401 | <p>The content model of the element is so defined that it | ||
| 1402 | must contain a <code><var>$0</var></code> child element. | ||
| 1403 | wakaba | 1.3 | The document is non-conforming.</p> |
| 1404 | wakaba | 1.1 | |
| 1405 | wakaba | 1.12 | <dl class="switch"> |
| 1406 | <dt>HTML <code>head</code> element</dt> | ||
| 1407 | <dd>There must be a <code>title</code> child element.</dd> | ||
| 1408 | <dt>HTML <code>html</code> element</dt> | ||
| 1409 | <dd>There must be a <code>head</code> child element followed | ||
| 1410 | by a <code>body</code> element.</dd> | ||
| 1411 | <dt>HTML <code>tr</code> element</dt> | ||
| 1412 | <dd><a href="#child-element-missing:td%7Cth">There must be | ||
| 1413 | one or more <code>td</code> or <code>th</code> child element.</a></dd> | ||
| 1414 | </dl> | ||
| 1415 | wakaba | 1.1 | </d:desc> |
| 1416 | </d:item> | ||
| 1417 | |||
| 1418 | <d:item name="child element missing:td|th" | ||
| 1419 | class="content-model-error"> | ||
| 1420 | <d:message xml:lang="en">There must be a <code>td</code> | ||
| 1421 | or <code>th</code> element as a child of this element.</d:message> | ||
| 1422 | <d:desc xml:lang="en"> | ||
| 1423 | <p>The <code>tr</code> element must contain at least one | ||
| 1424 | wakaba | 1.3 | <code>td</code> or <code>th</code> child element. The document |
| 1425 | is non-conforming.</p> | ||
| 1426 | wakaba | 1.1 | </d:desc> |
| 1427 | </d:item> | ||
| 1428 | |||
| 1429 | wakaba | 1.31 | <d:item name="child element missing:atom" |
| 1430 | modules="ContentChecker::HTML"> | ||
| 1431 | <d:message xml:lang="en">There must be an element | ||
| 1432 | <code><var>{text}</var></code> in the Atom namespace as a child of this | ||
| 1433 | element.</d:message> | ||
| 1434 | </d:item> | ||
| 1435 | |||
| 1436 | <d:item name="child element missing:atom:link:alternate" | ||
| 1437 | modules="ContentChecker::HTML"> | ||
| 1438 | <d:message xml:lang="en">There must be an Atom <code>link</code> element | ||
| 1439 | whose <code>rel</code> attribute is set to <code>alternate</code> as a | ||
| 1440 | wakaba | 1.32 | child of this element.</d:message> |
| 1441 | wakaba | 1.31 | </d:item> |
| 1442 | |||
| 1443 | <d:item name="child element missing:atom:link:self" | ||
| 1444 | modules="ContentChecker::HTML"> | ||
| 1445 | <d:message xml:lang="en">There should be an Atom <code>link</code> element | ||
| 1446 | whose <code>rel</code> attribute is set to <code>self</code> as a | ||
| 1447 | wakaba | 1.32 | child of this element.</d:message> |
| 1448 | wakaba | 1.31 | </d:item> |
| 1449 | |||
| 1450 | wakaba | 1.30 | <d:item name="element missing:hn" |
| 1451 | modules="ContentChecker::HTML"> | ||
| 1452 | <d:message xml:lang="en">There must be at least one | ||
| 1453 | <code>h<var>n</var></code> element descendant.</d:message> | ||
| 1454 | </d:item> | ||
| 1455 | |||
| 1456 | wakaba | 1.1 | <d:item name="element not allowed" |
| 1457 | wakaba | 1.32 | modules="ContentChecker::HTML ContentChecker::Atom RDFXML"> |
| 1458 | wakaba | 1.1 | <d:message xml:lang="en">This element is not allowed in this |
| 1459 | context.</d:message> | ||
| 1460 | <d:desc xml:lang="en"> | ||
| 1461 | wakaba | 1.3 | <p>An element appears where it is not allowed. The document |
| 1462 | wakaba | 1.1 | is non-conforming.</p> |
| 1463 | |||
| 1464 | <p>Possible causes: | ||
| 1465 | wakaba | 1.6 | <dl class="switch"> |
| 1466 | <dt>If the element with the error is an inline-level element, | ||
| 1467 | such as <code>a</code>, <code>progress</code>, or <code>img</code></dt> | ||
| 1468 | wakaba | 1.1 | <dd><p>An inline-level element cannot be a child |
| 1469 | of certain sectioning elements such as <code>body</code>, | ||
| 1470 | <code>section</code>, and <code>blockquote</code>.</p> | ||
| 1471 | |||
| 1472 | <p>Any inline-level content must be put | ||
| 1473 | in e.g. paragraph element such as <code>p</code>.</p></dd> | ||
| 1474 | wakaba | 1.9 | <dt>If it is a block-level elements, such as <code>aside</code>, |
| 1475 | <code>div</code>, <code>h<var>n</var></code>, | ||
| 1476 | <code>p</code>, or <code>section</code></dt> | ||
| 1477 | <dd><dl class="switch"> | ||
| 1478 | <dt>If the parent element is <code>div</code>, | ||
| 1479 | <code>li</code>, <code>td</code>, or <code>th</code></dt> | ||
| 1480 | <!-- @@ TODO: more... --> | ||
| 1481 | <!-- @@ TODO: <p><ul><li><p> --> | ||
| 1482 | <dd><p>The parent element allows <em>either</em> | ||
| 1483 | block-level or inline-level content. If there is a | ||
| 1484 | block-level content, any inline-level content must be | ||
| 1485 | put in e.g. paragraph element such as <code>p</code>.</p> | ||
| 1486 | <p>For example, an HTML document fragment | ||
| 1487 | wakaba | 1.15 | <code class="html bad example"><div><p>Hello!</p> World!</div></code> |
| 1488 | wakaba | 1.9 | is non-conforming, since a word <q>World!</q> does not belong |
| 1489 | to any paragraph. (If not part of any paragraph, what is | ||
| 1490 | it!?) A conforming example would be: | ||
| 1491 | wakaba | 1.15 | <pre class="html example"><code><div><p>Hello!</p> <p>World!</p></div></code></pre> |
| 1492 | wakaba | 1.9 | </p></dd> |
| 1493 | <dt>If the parent element does <em>not</em> allow | ||
| 1494 | block-level elements as content</dt> | ||
| 1495 | <dd>The element is not allowed to be inserted here. | ||
| 1496 | For example, a <code>div</code> element cannot be | ||
| 1497 | a child of an <code>h1</code> element.</dd> | ||
| 1498 | </dl></dd> | ||
| 1499 | wakaba | 1.6 | <dt>If the element with the error is a <code>noscript</code> element</dt> |
| 1500 | <dd>The <code>noscript</code> element is allowed only in the context | ||
| 1501 | where a block-level or inline-level content is expected | ||
| 1502 | and in the <code>head</code> element. | ||
| 1503 | It cannot be used in e.g. <code>ul</code>, <code>table</code>, | ||
| 1504 | or <code>select</code>.</dd> | ||
| 1505 | wakaba | 1.8 | <dt>If the element with the error is <code>blink</code>, |
| 1506 | <code>center</code>, or <code>marquee</code> element</dt> | ||
| 1507 | <dd>These elements are not part of the HTML standard. | ||
| 1508 | Use CSS for styling control.</dd> | ||
| 1509 | wakaba | 1.9 | |
| 1510 | wakaba | 1.11 | <dt><code>button</code>, <code>datalist</code>, |
| 1511 | <code>fieldset</code>, <code>form</code>, | ||
| 1512 | wakaba | 1.9 | <code>input</code>, <code>label</code>, |
| 1513 | <code>optgroup</code>, <code>option</code>, <code>output</code>, | ||
| 1514 | <code>rb</code>, <code>rp</code>, <code>rt</code>, <code>ruby</code>, | ||
| 1515 | <code>textarea</code>, or <code>textarea</code> element</dt> | ||
| 1516 | <!-- rbc, rtc ? --> | ||
| 1517 | <dd>These elements are intentionally not supported by the conformance | ||
| 1518 | checker <em>yet</em>.</dd> | ||
| 1519 | wakaba | 1.1 | </dl> |
| 1520 | </p> | ||
| 1521 | </d:desc> | ||
| 1522 | </d:item> | ||
| 1523 | |||
| 1524 | wakaba | 1.30 | <d:item name="element not allowed:area" |
| 1525 | modules="ContentChecker ContentChecker::HTML"> | ||
| 1526 | <d:message xml:lang="en">An <code>area</code> element cannot be used | ||
| 1527 | outside of a <code>map</code> element.</d:message> | ||
| 1528 | </d:item> | ||
| 1529 | |||
| 1530 | <d:item name="element not allowed:base" | ||
| 1531 | modules="ContentChecker ContentChecker::HTML"> | ||
| 1532 | <d:message xml:lang="en">There is another <code>base</code> | ||
| 1533 | element.</d:message> | ||
| 1534 | </d:item> | ||
| 1535 | |||
| 1536 | <d:item name="element not allowed:datatemplate" | ||
| 1537 | modules="ContentChecker ContentChecker::HTML"> | ||
| 1538 | <d:message xml:lang="en">In a <code>datatemplate</code> element, only | ||
| 1539 | <code>rule</code> elements are allowed.</d:message> | ||
| 1540 | </d:item> | ||
| 1541 | |||
| 1542 | <d:item name="element not allowed:details legend" | ||
| 1543 | modules="ContentChecker::HTML"> | ||
| 1544 | <d:message xml:lang="en">In a <code>details</code> element, only at the | ||
| 1545 | beginning of the element a <code>lengend</code> element | ||
| 1546 | may be used.</d:message> | ||
| 1547 | </d:item> | ||
| 1548 | |||
| 1549 | <d:item name="element not allowed:empty" | ||
| 1550 | wakaba | 1.31 | modules="ContentChecker::HTML ContentChecker::Atom"> |
| 1551 | wakaba | 1.30 | <d:message xml:lang="en">Elements are not allowed in an empty |
| 1552 | element.</d:message> | ||
| 1553 | </d:item> | ||
| 1554 | |||
| 1555 | <d:item name="element not allowed:figure legend" | ||
| 1556 | modules="ContentChecker::HTML"> | ||
| 1557 | <d:message xml:lang="en">In a <code>figure</code> element, only at the | ||
| 1558 | beginning or only at the end of the element a <code>lengend</code> element | ||
| 1559 | may be used.</d:message> | ||
| 1560 | </d:item> | ||
| 1561 | |||
| 1562 | <d:item name="element not allowed:flow" | ||
| 1563 | modules="ContentChecker::HTML"> | ||
| 1564 | <d:message xml:lang="en">This element is not allowed where flow | ||
| 1565 | content is expected.</d:message> | ||
| 1566 | </d:item> | ||
| 1567 | |||
| 1568 | <d:item name="element not allowed:flow style" | ||
| 1569 | modules="ContentChecker::HTML"> | ||
| 1570 | <d:message xml:lang="en">A <code>style</code> element without | ||
| 1571 | <code>scoped</code> attribute is not allowed in this context.</d:message> | ||
| 1572 | </d:item> | ||
| 1573 | |||
| 1574 | <d:item name="element not allowed:head noscript" | ||
| 1575 | modules="ContentChecker::HTML"> | ||
| 1576 | <d:message xml:lang="en">This element is not allowed in a | ||
| 1577 | <code>noscript</code> element in the <code>head</code> element.</d:message> | ||
| 1578 | </d:item> | ||
| 1579 | |||
| 1580 | <d:item name="element not allowed:head style" | ||
| 1581 | modules="ContentChecker::HTML"> | ||
| 1582 | <d:message xml:lang="en">A <code>style</code> element with | ||
| 1583 | <code>scoped</code> attribute is not allowed in the <code>head</code> | ||
| 1584 | element.</d:message> | ||
| 1585 | </d:item> | ||
| 1586 | |||
| 1587 | <d:item name="element not allowed:head title" | ||
| 1588 | modules="ContentChecker ContentChecker::HTML"> | ||
| 1589 | <d:message xml:lang="en">There is another <code>title</code> | ||
| 1590 | element.</d:message> | ||
| 1591 | </d:item> | ||
| 1592 | |||
| 1593 | <d:item name="element not allowed:minus" | ||
| 1594 | modules="ContentChecker ContentChecker::HTML"> | ||
| 1595 | <d:message xml:lang="en">This element is not allowed in this | ||
| 1596 | context.</d:message> | ||
| 1597 | </d:item> | ||
| 1598 | |||
| 1599 | <d:item name="element not allowed:meta charset" | ||
| 1600 | modules="ContentChecker::HTML"> | ||
| 1601 | wakaba | 1.42 | <d:message xml:lang="en">The character encoding declaration is not the |
| 1602 | first child element in the <code>head</code> element.</d:message> | ||
| 1603 | <d:message xml:lang="ja">文字符号化宣言が <code>head</code> | ||
| 1604 | 要素の最初の子要素ではありません。</d:message> | ||
| 1605 | <d:desc xml:lang="en"> | ||
| 1606 | <p>The character encoding declaration | ||
| 1607 | (<code class="html example"><meta charset="<var>...</var>"></code> or | ||
| 1608 | <code class="html example"><meta http-equiv=Content-Type content="text/html; charset=<var>...</var>"></code> | ||
| 1609 | must be the first child element in the <code>head</code> element.</p> | ||
| 1610 | |||
| 1611 | <p>The character encoding declaration have to occur near the beginning | ||
| 1612 | of the document to ensure that Web browsers can be determine the | ||
| 1613 | character encoding of the document.</p> | ||
| 1614 | |||
| 1615 | <p>The <code>title</code> element and other metadata elements must | ||
| 1616 | appear after any character encoding declaration is processed.</p> | ||
| 1617 | </d:desc> | ||
| 1618 | wakaba | 1.30 | </d:item> |
| 1619 | |||
| 1620 | <d:item name="element not allowed:metadata" | ||
| 1621 | modules="ContentChecker::HTML"> | ||
| 1622 | <d:message xml:lang="en">This element is not allowed where metadata | ||
| 1623 | content is expected.</d:message> | ||
| 1624 | </d:item> | ||
| 1625 | |||
| 1626 | <d:item name="element not allowed:phrasing" | ||
| 1627 | modules="ContentChecker::HTML"> | ||
| 1628 | <d:message xml:lang="en">This element is not allowed where phrasing | ||
| 1629 | content is expected.</d:message> | ||
| 1630 | </d:item> | ||
| 1631 | |||
| 1632 | wakaba | 1.12 | <d:item name="element not allowed:root" |
| 1633 | wakaba | 1.30 | modules="ContentChecker"> |
| 1634 | <d:message xml:lang="en">This element is not allowed as the root | ||
| 1635 | element of a document.</d:message> | ||
| 1636 | wakaba | 1.12 | <d:desc xml:lang="en"> |
| 1637 | <p>An element that is not allowed as the root element | ||
| 1638 | is used as the root element of the document. The document is | ||
| 1639 | non-conforming, as far as the conformance checker can tell.</p> | ||
| 1640 | |||
| 1641 | <dl class="switch"> | ||
| 1642 | <dt><code>html</code> element in an XHTML document</dt> | ||
| 1643 | wakaba | 1.15 | <dd><p>In <abbr>XHTML</abbr> document, the root <code>html</code> |
| 1644 | element must have an <code>xmlns</code> attribute as: | ||
| 1645 | <pre class="xml example"><code><html xmlns="http://www.w3.org/1999/xhtml"></code></pre></p></dd> | ||
| 1646 | wakaba | 1.12 | <dt><code>rss</code> element</dt> |
| 1647 | <dd><p>The document is written in some version of RSS.</p> | ||
| 1648 | <p>The conformance checker does not support any version | ||
| 1649 | of RSS. Use Atom 1.0 for feed documents.</p></dd> | ||
| 1650 | <dt><code>feed</code> element</dt> | ||
| 1651 | <dd><p>The Atom <code>feed</code> element must be | ||
| 1652 | wakaba | 1.15 | in the <code>http://www.w3.org/2005/Atom</code> |
| 1653 | namespace as: | ||
| 1654 | <pre class="xml example"><code><feed xmlns="http://www.w3.org/2005/Atom"></code></pre> | ||
| 1655 | </p> | ||
| 1656 | wakaba | 1.12 | <p>The conformance checker does not support Atom 0.3. |
| 1657 | Use Atom 1.0 for feed documents.</p></dd> | ||
| 1658 | </dl> | ||
| 1659 | </d:desc> | ||
| 1660 | </d:item> | ||
| 1661 | |||
| 1662 | wakaba | 1.30 | <d:item name="element not allowed:root:xml" |
| 1663 | modules="ContentChecker"> | ||
| 1664 | <d:message xml:lang="en">This element is not allowed as the root element | ||
| 1665 | of an XML document.</d:message> | ||
| 1666 | </d:item> | ||
| 1667 | |||
| 1668 | <d:item name="element not allowed:ruby base" | ||
| 1669 | modules="ContentChecker"> | ||
| 1670 | <d:message xml:lang="en">This element is not allowed in the <code>ruby</code> | ||
| 1671 | element.</d:message> | ||
| 1672 | </d:item> | ||
| 1673 | |||
| 1674 | <d:item name="element not allowed:text" | ||
| 1675 | modules="ContentChecker::HTML"> | ||
| 1676 | <d:message xml:lang="en">This element is not allowed in this | ||
| 1677 | context.</d:message> | ||
| 1678 | </d:item> | ||
| 1679 | |||
| 1680 | wakaba | 1.31 | <d:item name="element not allowed:atom|content" |
| 1681 | modules="ContentChecker::Atom"> | ||
| 1682 | <d:message xml:lang="en">This element is not allowed in an Atom | ||
| 1683 | <code>content</code> element.</d:message> | ||
| 1684 | </d:item> | ||
| 1685 | |||
| 1686 | <d:item name="element not allowed:atom|PersonConstruct" | ||
| 1687 | modules="ContentChecker::Atom"> | ||
| 1688 | <d:message xml:lang="en">This element is not allowed in Person | ||
| 1689 | construct.</d:message> | ||
| 1690 | </d:item> | ||
| 1691 | |||
| 1692 | <d:item name="element not allowed:atom|TextConstruct" | ||
| 1693 | modules="ContentChecker::Atom"> | ||
| 1694 | <d:message xml:lang="en">This element is not allowed in Text | ||
| 1695 | construct.</d:message> | ||
| 1696 | </d:item> | ||
| 1697 | |||
| 1698 | wakaba | 1.30 | <d:item name="element not defined" |
| 1699 | modules="ContentChecker"> | ||
| 1700 | <d:message xml:lang="en">This element is not defined.</d:message> | ||
| 1701 | wakaba | 1.42 | <d:message xml:lang="ja">この要素は定義されていません。</d:message> |
| 1702 | <d:desc xml:lang="en"> | ||
| 1703 | <p>The element is not one of elements allowed | ||
| 1704 | in the latest version of relevant specifications.</p> | ||
| 1705 | |||
| 1706 | <p>The element cannot be used.</p> | ||
| 1707 | |||
| 1708 | <dl class="switch"> | ||
| 1709 | <dt><code>event-source</code> element</dt> | ||
| 1710 | <dd>The element was renamed as <em><code>eventsource</code> | ||
| 1711 | element</em> (no hyphen).</dd> | ||
| 1712 | <dt><code>m</code> element</dt> | ||
| 1713 | <dd>The element was renamed as <em><code>mark</code> | ||
| 1714 | element</em>.</dd> | ||
| 1715 | </dl> | ||
| 1716 | </d:desc> | ||
| 1717 | wakaba | 1.30 | </d:item> |
| 1718 | |||
| 1719 | <d:item name="no significant content" | ||
| 1720 | modules="ContentChecker::HTML"> | ||
| 1721 | <d:message xml:lang="en">No significant content is contained | ||
| 1722 | in this element.</d:message> | ||
| 1723 | </d:item> | ||
| 1724 | |||
| 1725 | <d:item name="no significant content before" | ||
| 1726 | modules="ContentChecker::HTML"> | ||
| 1727 | <d:message xml:lang="en">There is no significant content | ||
| 1728 | before this element.</d:message> | ||
| 1729 | </d:item> | ||
| 1730 | |||
| 1731 | <d:item name="no significant content at the end" | ||
| 1732 | modules="ContentChecker::HTML"> | ||
| 1733 | <d:message xml:lang="en">No significant content is contained | ||
| 1734 | at the end of this element.</d:message> | ||
| 1735 | </d:item> | ||
| 1736 | |||
| 1737 | wakaba | 1.6 | <d:item name="ps element missing" |
| 1738 | wakaba | 1.30 | modules="ContentChecker::HTML"> |
| 1739 | <d:message xml:lang="en">There is no <code><var>{text}</var></code> | ||
| 1740 | wakaba | 1.6 | element before this element.</d:message> |
| 1741 | <d:desc xml:lang="en"> | ||
| 1742 | <p>There must be an element before another element, but there | ||
| 1743 | is not. The document is non-conforming.</p> | ||
| 1744 | |||
| 1745 | <p>For example, there must be a <code>dt</code> element | ||
| 1746 | before any <code>dd</code> element.</p> | ||
| 1747 | </d:desc> | ||
| 1748 | </d:item> | ||
| 1749 | |||
| 1750 | wakaba | 1.30 | <d:item name="rp:syntax error" |
| 1751 | modules="ContentChecker::HTML"> | ||
| 1752 | <d:message xml:lang="en">The content of a <code>rp</code> element must | ||
| 1753 | be a parenthesis.</d:message> | ||
| 1754 | </d:item> | ||
| 1755 | |||
| 1756 | wakaba | 1.2 | </section> |
| 1757 | |||
| 1758 | wakaba | 1.3 | <section id="attribute-errors"> |
| 1759 | <h2>Attribute Errors</h2> | ||
| 1760 | |||
| 1761 | <d:item name="attribute missing" | ||
| 1762 | wakaba | 1.30 | modules="ContentChecker::HTML"> |
| 1763 | <d:message xml:lang="en">Required attribute <code><var>{text}</var></code> | ||
| 1764 | wakaba | 1.3 | is not specified.</d:message> |
| 1765 | <d:desc> | ||
| 1766 | <p>A required attribute is not specified. The document | ||
| 1767 | is non-conforming.</p> | ||
| 1768 | |||
| 1769 | <p>Some attribute is defined as <i>required</i>. | ||
| 1770 | Without required attributes specified, user agents | ||
| 1771 | wakaba | 1.9 | cannot provide full functionality of the element to the user.</p> |
| 1772 | |||
| 1773 | <dl class="switch"> | ||
| 1774 | <dt>HTML <code>img</code> element</dt> | ||
| 1775 | <dd>The <code>src</code> attribute must be specified. | ||
| 1776 | Additionally, the <code>alt</code> attribute must be specified | ||
| 1777 | in many cases.</dd> | ||
| 1778 | <dt>HTML <code>link</code> element</dt> | ||
| 1779 | <dd>The <code>rel</code> attribute must be specified. | ||
| 1780 | Note that the <code>rev</code> attribute is obsolete.</dd> | ||
| 1781 | </dl> | ||
| 1782 | wakaba | 1.3 | </d:desc> |
| 1783 | </d:item> | ||
| 1784 | |||
| 1785 | wakaba | 1.30 | <d:item name="attribute missing:data|type" |
| 1786 | modules="ContentChecker::HTML"> | ||
| 1787 | <d:message xml:lang="en">For an <code>object</code> at least one of | ||
| 1788 | <code>data</code> and <code>type</code> attributes must be | ||
| 1789 | specified.</d:message> | ||
| 1790 | </d:item> | ||
| 1791 | |||
| 1792 | <d:item name="attribute missing:href|target" | ||
| 1793 | modules="ContentChecker::HTML"> | ||
| 1794 | <d:message xml:lang="en">For a <code>base</code> element, at least one of | ||
| 1795 | <code>href</code> and <code>target</code> attributes must be | ||
| 1796 | specified.</d:message> | ||
| 1797 | </d:item> | ||
| 1798 | |||
| 1799 | <d:item name="attribute missing:name|http-equiv" | ||
| 1800 | modules="ContentChecker::HTML"> | ||
| 1801 | <d:message xml:lang="en">For a <code>meta</code> element with the | ||
| 1802 | <code>content</code> attribute specified, exactly one of | ||
| 1803 | <code>name</code> and <code>http-equiv</code> attributes must be | ||
| 1804 | specified.</d:message> | ||
| 1805 | </d:item> | ||
| 1806 | |||
| 1807 | <d:item name="attribute missing:name|http-equiv|charset" | ||
| 1808 | modules="ContentChecker::HTML"> | ||
| 1809 | <d:message xml:lang="en">For a <code>meta</code> element, exactly one of | ||
| 1810 | <code>name</code>, <code>http-equiv</code>, and <code>charset</code> | ||
| 1811 | attributes must be specified.</d:message> | ||
| 1812 | </d:item> | ||
| 1813 | |||
| 1814 | <d:item name="attribute not allowed" | ||
| 1815 | wakaba | 1.32 | modules="ContentChecker::HTML RDFXML"> |
| 1816 | wakaba | 1.8 | <d:message xml:lang="en">Attribute |
| 1817 | <code><var>{local-name}</var></code> is not allowed for | ||
| 1818 | <code><var>{element-local-name}</var></code> element.</d:message> | ||
| 1819 | <d:desc xml:lang="en"> | ||
| 1820 | <p>An attribute is specified where it is not allowed. | ||
| 1821 | The document is non-conforming.</p> | ||
| 1822 | |||
| 1823 | <dl> | ||
| 1824 | <dt>HTML <code>meta</code> element</dt> | ||
| 1825 | <dd>For HTML <code>meta</code> element, <em>only one</em> of | ||
| 1826 | <code>name</code>, <code>http-equiv</code>, or <code>charset</code> | ||
| 1827 | attribute is allowed.</dd> | ||
| 1828 | </dl> | ||
| 1829 | </d:desc> | ||
| 1830 | </d:item> | ||
| 1831 | |||
| 1832 | wakaba | 1.30 | <d:item name="attribute not allowed:ismap" |
| 1833 | modules="ContentChecker::HTML"> | ||
| 1834 | <d:message xml:lang="en">The <code>ismap</code> attribute may only be | ||
| 1835 | used for the image contained in an <code>a</code> element.</d:message> | ||
| 1836 | </d:item> | ||
| 1837 | |||
| 1838 | <d:item name="attribute not defined" | ||
| 1839 | modules="ContentChecker"> | ||
| 1840 | <d:message xml:lang="en">This attribute is not defined.</d:message> | ||
| 1841 | wakaba | 1.42 | <d:message xml:lang="ja">この属性は定義されていません。</d:message> |
| 1842 | wakaba | 1.41 | <d:desc xml:lang="en"> |
| 1843 | <p>The attribute is not one of attributes allowed for the element | ||
| 1844 | in the latest version of relevant specifications.</p> | ||
| 1845 | |||
| 1846 | <p>The attribute cannot be used.</p> | ||
| 1847 | |||
| 1848 | wakaba | 1.42 | <dl class="switch"> |
| 1849 | <dt><code>align</code> attribute (various HTML elements)</dt> | ||
| 1850 | <dt><code>border</code> attribute (various HTML elements)</dt> | ||
| 1851 | <dd>These attributes are no longer part of HTML. You can use CSS | ||
| 1852 | properties to control the presentation of the element.</dd> | ||
| 1853 | wakaba | 1.41 | <dt><code>autosubmit</code> attribute (<code>menu</code> element)</dt> |
| 1854 | <dd>The attribute was part of HTML5 draft but then dropped. | ||
| 1855 | Similar functionality can be implemented by scripts.</dd> | ||
| 1856 | wakaba | 1.42 | <dt><code>language</code> attribute (<code>script</code> element)</dt> |
| 1857 | <dd>The attribute is no longer the standard way to specify the | ||
| 1858 | scripting language. If you are using JavaScript, then no explicit | ||
| 1859 | specification of the scripting language is necessary, so you can | ||
| 1860 | write the element like: | ||
| 1861 | <p><code class="html example code"><script><br/><!-- | ||
| 1862 | --> /* JavaScript code */<br/><!-- | ||
| 1863 | --></script></code></p> | ||
| 1864 | If you are using different scripting language from JavaScript, or | ||
| 1865 | you want to declare the scripting language explicitly, you should | ||
| 1866 | use the <code>type</code> attribute, as follows: | ||
| 1867 | <dl class="switch"> | ||
| 1868 | <dt>JavaScript</dt> | ||
| 1869 | <dd>Use | ||
| 1870 | <code class="html example"><script type="text/javascript"></code>.</dd> | ||
| 1871 | <dt>VBScript</dt> | ||
| 1872 | <dd>Use | ||
| 1873 | <code class="html example"><script type="text/vbscript"></code>.</dd> | ||
| 1874 | </dl> | ||
| 1875 | </dd> | ||
| 1876 | wakaba | 1.41 | </dl> |
| 1877 | </d:desc> | ||
| 1878 | wakaba | 1.30 | </d:item> |
| 1879 | |||
| 1880 | wakaba | 1.3 | <d:item name="in HTML:xml:lang" |
| 1881 | wakaba | 1.30 | modules="ContentChecker::XML"> |
| 1882 | wakaba | 1.41 | <d:message xml:lang="en">The <code>xml:lang</code> attribute in HTML |
| 1883 | document is ignored.</d:message> | ||
| 1884 | wakaba | 1.8 | <d:desc xml:lang="en"> |
| 1885 | wakaba | 1.41 | <p>The <code>xml:lang</code> attribute does not have an effect in |
| 1886 | HTML document.</p> | ||
| 1887 | wakaba | 1.3 | |
| 1888 | wakaba | 1.41 | <p>The <code>xml:lang</code> attribute is only applicable to XML |
| 1889 | documents. In HTML document, it is only allowed to ease migration | ||
| 1890 | from XML.</p> | ||
| 1891 | wakaba | 1.3 | |
| 1892 | <p>To specify natural language information in HTML document, | ||
| 1893 | use <code>lang</code> attribute instead.</p> | ||
| 1894 | wakaba | 1.6 | |
| 1895 | <p>XHTML 1.0 Appendix C was encouraged to specify both | ||
| 1896 | <code>lang</code> and <code>xml:lang</code> attributes with | ||
| 1897 | the same value. Such a duplication has <em>no effect</em> in practice. | ||
| 1898 | Use only one of <code>lang</code> (in HTML) or <code>xml:lang</code> (in | ||
| 1899 | XML).</p> | ||
| 1900 | |||
| 1901 | wakaba | 1.3 | <!-- @@ ISSUE: xml:lang in non-HTML element in DOM5 HTML created |
| 1902 | from an HTML document? --> | ||
| 1903 | </d:desc> | ||
| 1904 | </d:item> | ||
| 1905 | |||
| 1906 | <d:item name="in XML:charset" | ||
| 1907 | wakaba | 1.30 | modules="ContentChecker::HTML"> |
| 1908 | wakaba | 1.3 | <d:message xml:lang="en">The <code>charset</code> attribute is not |
| 1909 | allowed in XML document.</d:message> | ||
| 1910 | <d:desc> | ||
| 1911 | <p>The <code>charset</code> attribute of a | ||
| 1912 | <code>meta</code> element is not allowed in XML document. | ||
| 1913 | The document is non-conforming.</p> | ||
| 1914 | |||
| 1915 | <p>To specify the character encoding used for serialization, | ||
| 1916 | if necessary, use XML declaration instead: | ||
| 1917 | <pre class="xml example"><code><?xml version="1.0" encoding="<var>encoding-name</var>"?></code></pre> | ||
| 1918 | </p> | ||
| 1919 | </d:desc> | ||
| 1920 | </d:item> | ||
| 1921 | |||
| 1922 | wakaba | 1.41 | <d:item name="in XML:noscript" |
| 1923 | wakaba | 1.30 | modules="ContentChecker::HTML"> |
| 1924 | wakaba | 1.41 | <d:message xml:lang="en">A <code>noscript</code> element cannot be |
| 1925 | used in XML document.</d:message> | ||
| 1926 | wakaba | 1.3 | </d:item> |
| 1927 | |||
| 1928 | wakaba | 1.41 | <d:item name="in XML:xml:lang" |
| 1929 | wakaba | 1.30 | modules="ContentChecker::HTML"> |
| 1930 | wakaba | 1.41 | <d:message xml:lang="en">The <code>xml:lang</code> attribute in no namespace |
| 1931 | is only allowed in HTML document.</d:message> | ||
| 1932 | <d:message xml:lang="ja">名前空間に属さない <code>xml:lang</code> | ||
| 1933 | 属性が認められているのは HTML 文書中だけです。</d:message> | ||
| 1934 | wakaba | 1.30 | </d:item> |
| 1935 | |||
| 1936 | wakaba | 1.3 | <d:item name="in XML:xmlns" |
| 1937 | wakaba | 1.30 | modules="ContentChecker::HTML"> |
| 1938 | wakaba | 1.3 | <d:message xml:lang="en">The <code>xmlns</code> attribute |
| 1939 | in the <code>null</code> namespace is not allowed in | ||
| 1940 | XHTML document. The document is non-conforming.</d:message> | ||
| 1941 | <d:desc> | ||
| 1942 | <p>The <code>xmlns</code> attribute in the <code>null</code> | ||
| 1943 | namespace is not allowed in XHTML document.</p> | ||
| 1944 | |||
| 1945 | wakaba | 1.8 | <p>This error should not occur in conformance-checking of |
| 1946 | wakaba | 1.3 | static documents.</p> |
| 1947 | </d:desc> | ||
| 1948 | </d:item> | ||
| 1949 | |||
| 1950 | wakaba | 1.41 | <d:item name="xml:lang not allowed" |
| 1951 | modules="ContentChecker::HTML"> | ||
| 1952 | <d:message xml:lang="en">The <code>xml:lang</code> attribute is only allowed | ||
| 1953 | when the <code>lang</code> attribute is specified.</d:message> | ||
| 1954 | <d:message xml:lang="ja"><code>xml:lang</code> 属性を指定できるのは | ||
| 1955 | <code>lang</code> 属性が指定されている時だけです。</d:message> | ||
| 1956 | </d:item> | ||
| 1957 | |||
| 1958 | wakaba | 1.3 | </section> |
| 1959 | |||
| 1960 | wakaba | 1.2 | <section id="attribute-value-errors"> |
| 1961 | <h2>Attribute Value Errors</h2> | ||
| 1962 | wakaba | 1.1 | |
| 1963 | wakaba | 1.30 | <d:item name="boolean:invalid" |
| 1964 | modules="ContentChecker::HTML"> | ||
| 1965 | <d:message xml:lang="en">Attribute value <code><var>{@}</var></code> | ||
| 1966 | is not allowed. It must be an empty string or a string | ||
| 1967 | <code><var>{local-name}</var></code>.</d:message> | ||
| 1968 | </d:item> | ||
| 1969 | |||
| 1970 | <d:item name="char:syntax error" | ||
| 1971 | modules="ContentChecker::HTML"> | ||
| 1972 | <d:message xml:lang="en">The attribute value must be exactly one | ||
| 1973 | character.</d:message> | ||
| 1974 | </d:item> | ||
| 1975 | |||
| 1976 | <d:item name="charref in charset" | ||
| 1977 | modules="ContentChecker::HTML"> | ||
| 1978 | <d:message xml:lang="en">A character reference cannot be used to | ||
| 1979 | represent a character encoding name.</d:message> | ||
| 1980 | </d:item> | ||
| 1981 | |||
| 1982 | <d:item name="charset:not preferred" | ||
| 1983 | modules="ContentChecker::HTML"> | ||
| 1984 | <d:message xml:lang="en">Character encoding name | ||
| 1985 | <code><var>{value}</var></code> is not the preferred name of that | ||
| 1986 | character encoding.</d:message> | ||
| 1987 | </d:item> | ||
| 1988 | |||
| 1989 | <d:item name="charset:not registered" | ||
| 1990 | modules="ContentChecker::HTML"> | ||
| 1991 | <d:message xml:lang="en">Character encoding name | ||
| 1992 | <code><var>{value}</var></code> is not a registered name.</d:message> | ||
| 1993 | wakaba | 1.17 | <d:desc xml:lang="en"> |
| 1994 | <p>The specified character encoding name is not registered to | ||
| 1995 | <abbr>IANA</abbr>. Use of registered character encoding name | ||
| 1996 | is a good practice to facilitate interoperability.</p> | ||
| 1997 | |||
| 1998 | <dl class="switch"> | ||
| 1999 | <dt><code>EUC-TW</code></dt> | ||
| 2000 | <dd><code>EUC-TW</code> is not registered. Unfortunately, there | ||
| 2001 | is no registered name for that character encoding. Use | ||
| 2002 | Big5 encoding with character encoding name <code>Big5</code> | ||
| 2003 | if it is enough to represent the document.</dd> | ||
| 2004 | <dt><code>ISO-2022-JP-1</code></dt> | ||
| 2005 | <dd><code>ISO-2022-JP-1</code> is not registered, nevertheless | ||
| 2006 | this character encoding name is documented in | ||
| 2007 | <a href="urn:ietf:rfc:2237"><abbr>RFC</abbr> 2237</a>. Use | ||
| 2008 | <code>ISO-2022-JP-2</code> instead, since that character encoding | ||
| 2009 | is a superset of ISO-2022-JP-1.</dd> | ||
| 2010 | <dt><code>ISO-2022-JP-3</code>, <code>ISO-2022-JP-3-plane1</code></dt> | ||
| 2011 | <dd>These names are not registered and obsoleted in favor of | ||
| 2012 | <code>ISO-2022-JP-2004</code> and | ||
| 2013 | <code>ISO-2022-JP-2004-plane1</code>.</dd> | ||
| 2014 | <dt><code>ISO-2022-JP-2003</code>, | ||
| 2015 | <code>ISO-2022-JP-2003-plane1</code></dt> | ||
| 2016 | <dd>These names are not registered and corrected to | ||
| 2017 | <code>ISO-2022-JP-2004</code> and | ||
| 2018 | <code>ISO-2022-JP-2004-plane1</code>.</dd> | ||
| 2019 | <dt><code>ISO-2022-JP-2004</code>, | ||
| 2020 | <code>ISO-2022-JP-2004-plane1</code></dt> | ||
| 2021 | <dd>These names are not registered. Unfortunately, there is | ||
| 2022 | no registered name for these character encodings.</dd> | ||
| 2023 | <dt><code>UTF-8N</code></dt> | ||
| 2024 | <dd><code>UTF-8N</code> is not registered. Character encoding | ||
| 2025 | name <code>UTF-8</code> represents UTF-8 encoding with or | ||
| 2026 | without <abbr>BOM</abbr>.</dd> | ||
| 2027 | </dl> | ||
| 2028 | |||
| 2029 | <p><strong>WARNING</strong>: This error might be raised for | ||
| 2030 | a registered character encoding name, since the character encoding | ||
| 2031 | name database of the conformance checker is not complete yet.</p> | ||
| 2032 | </d:desc> | ||
| 2033 | </d:item> | ||
| 2034 | |||
| 2035 | wakaba | 1.30 | <d:item name="charset:private" |
| 2036 | modules="ContentChecker::HTML"> | ||
| 2037 | <d:message xml:lang="en">Character encoding name | ||
| 2038 | <code><var>{value}</var></code> is a private name.</d:message> | ||
| 2039 | wakaba | 1.17 | <d:desc xml:lang="en"> |
| 2040 | <p>The specified character encoding name is a private name and | ||
| 2041 | not registered to <abbr>IANA</abbr>. Use of registered character | ||
| 2042 | encoding name is a good practice to facilitate interoperability.</p> | ||
| 2043 | |||
| 2044 | <dl class="switch"> | ||
| 2045 | <dt><code>x-euc-jp</code></dt> | ||
| 2046 | <dd>Use <code>EUC-JP</code> for the Japanese <abbr>EUC</abbr> | ||
| 2047 | character encoding.</dd> | ||
| 2048 | <dt><code>x-sjis</code></dt> | ||
| 2049 | <dd>Use <code>Shift_JIS</code> for standard Shift encoding scheme of | ||
| 2050 | <abbr>JIS</abbr> coded character set, or <code>Windows-31J</code> | ||
| 2051 | for Microsoft standard character set as implemented by | ||
| 2052 | Microsoft Windows.</dd> | ||
| 2053 | </dl> | ||
| 2054 | </d:desc> | ||
| 2055 | </d:item> | ||
| 2056 | |||
| 2057 | wakaba | 1.30 | <d:item name="charset:syntax error" |
| 2058 | modules="ContentChecker::HTML"> | ||
| 2059 | <d:message xml:lang="en">The specified value <code><var>{value}</var></code> | ||
| 2060 | is syntactically not a character encoding name.</d:message> | ||
| 2061 | wakaba | 1.17 | <d:desc xml:lang="en"> |
| 2062 | <p>The attribute value must be a character encoding name. However, | ||
| 2063 | the specified value is not a character encoding name syntactically. | ||
| 2064 | The document is non‐conforming.</p> | ||
| 2065 | <p>Character encoding name is a string of <abbr>ASCII</abbr> | ||
| 2066 | printable characters, up to 40 characters.</p> | ||
| 2067 | </d:desc> | ||
| 2068 | </d:item> | ||
| 2069 | |||
| 2070 | wakaba | 1.30 | <d:item name="color:syntax error" |
| 2071 | modules="ContentChecker::HTML"> | ||
| 2072 | <d:message xml:lang="en">The specified value is not a color | ||
| 2073 | name or hexadecimal color number.</d:message> | ||
| 2074 | </d:item> | ||
| 2075 | |||
| 2076 | <d:item name="coords:number not 3" | ||
| 2077 | modules="ContentChecker::HTML"> | ||
| 2078 | <d:message xml:lang="en">The <code>coords</code> attribute have to | ||
| 2079 | contain three (3) numbers (specified: | ||
| 2080 | <code><var>{text}</var></code>).</d:message> | ||
| 2081 | </d:item> | ||
| 2082 | |||
| 2083 | <d:item name="coords:number not 4" | ||
| 2084 | modules="ContentChecker::HTML"> | ||
| 2085 | <d:message xml:lang="en">The <code>coords</code> attribute have to | ||
| 2086 | contain four (4) numbers (specified: | ||
| 2087 | <code><var>{text}</var></code>).</d:message> | ||
| 2088 | </d:item> | ||
| 2089 | |||
| 2090 | <d:item name="coords:number lt 6" | ||
| 2091 | modules="ContentChecker::HTML"> | ||
| 2092 | <d:message xml:lang="en">The <code>coords</code> attribute have to | ||
| 2093 | contain more than or equal to six (6) numbers (specified: | ||
| 2094 | <code><var>{text}</var></code>).</d:message> | ||
| 2095 | </d:item> | ||
| 2096 | |||
| 2097 | <d:item name="coords:number not even" | ||
| 2098 | modules="ContentChecker::HTML"> | ||
| 2099 | <d:message xml:lang="en">The <code>coords</code> attribute have to | ||
| 2100 | contain even number of numbers (specified: | ||
| 2101 | <code><var>{text}</var></code>).</d:message> | ||
| 2102 | </d:item> | ||
| 2103 | |||
| 2104 | <d:item name="coords:out of range" | ||
| 2105 | modules="ContentChecker::HTML"> | ||
| 2106 | <d:message xml:lang="en">The specified value <code><var>{value}</var></code> | ||
| 2107 | is out of range.</d:message> | ||
| 2108 | </d:item> | ||
| 2109 | |||
| 2110 | <d:item name="coords:syntax error" | ||
| 2111 | modules="ContentChecker::HTML"> | ||
| 2112 | <d:message xml:lang="en">The specified value is not valid.</d:message> | ||
| 2113 | </d:item> | ||
| 2114 | |||
| 2115 | <d:item name="datetime:bad year" | ||
| 2116 | modules="ContentChecker::HTML"> | ||
| 2117 | <d:message xml:lang="en">Year number is out of range.</d:message> | ||
| 2118 | </d:item> | ||
| 2119 | |||
| 2120 | <d:item name="datetime:bad month" | ||
| 2121 | modules="ContentChecker::HTML"> | ||
| 2122 | <d:message xml:lang="en">Month number is out of range.</d:message> | ||
| 2123 | </d:item> | ||
| 2124 | |||
| 2125 | <d:item name="datetime:bad day" | ||
| 2126 | modules="ContentChecker::HTML"> | ||
| 2127 | <d:message xml:lang="en">Day number is out of range.</d:message> | ||
| 2128 | </d:item> | ||
| 2129 | |||
| 2130 | <d:item name="datetime:bad hour" | ||
| 2131 | modules="ContentChecker::HTML"> | ||
| 2132 | <d:message xml:lang="en">Hour number is out of range.</d:message> | ||
| 2133 | </d:item> | ||
| 2134 | |||
| 2135 | <d:item name="datetime:bad minute" | ||
| 2136 | modules="ContentChecker::HTML"> | ||
| 2137 | <d:message xml:lang="en">Minute number is out of range.</d:message> | ||
| 2138 | </d:item> | ||
| 2139 | |||
| 2140 | <d:item name="datetime:bad second" | ||
| 2141 | modules="ContentChecker::HTML"> | ||
| 2142 | <d:message xml:lang="en">Second number is out of range.</d:message> | ||
| 2143 | </d:item> | ||
| 2144 | |||
| 2145 | <d:item name="datetime:bad timezone hour" | ||
| 2146 | modules="ContentChecker::HTML"> | ||
| 2147 | <d:message xml:lang="en">Hour number of the timezone component is out of | ||
| 2148 | range.</d:message> | ||
| 2149 | </d:item> | ||
| 2150 | |||
| 2151 | <d:item name="datetime:bad timezone minute" | ||
| 2152 | modules="ContentChecker::HTML"> | ||
| 2153 | <d:message xml:lang="en">Minute number of the timezone component is out of | ||
| 2154 | range.</d:message> | ||
| 2155 | </d:item> | ||
| 2156 | |||
| 2157 | <d:item name="datetime:syntax error" | ||
| 2158 | modules="ContentChecker::HTML"> | ||
| 2159 | <d:message xml:lang="en">The attribute value is not a datetime.</d:message> | ||
| 2160 | </d:item> | ||
| 2161 | |||
| 2162 | <d:item name="dateortime:syntax error" | ||
| 2163 | modules="ContentChecker::HTML"> | ||
| 2164 | wakaba | 1.41 | <d:message xml:lang="en">The value is not a date or time.</d:message> |
| 2165 | wakaba | 1.30 | </d:item> |
| 2166 | |||
| 2167 | wakaba | 1.2 | <d:item name="enumerated:invalid" |
| 2168 | wakaba | 1.30 | modules="ContentChecker::HTML"> |
| 2169 | wakaba | 1.2 | <d:message xml:lang="en">This attribute only allow a limited set of |
| 2170 | wakaba | 1.6 | values and the specified value <code><var>{@}</var></code> is not one |
| 2171 | of them.</d:message> | ||
| 2172 | wakaba | 1.8 | <d:desc xml:lang="en"> |
| 2173 | <p>For this attribute only several values are allowed and the | ||
| 2174 | value of the attribute is not one of them. The document | ||
| 2175 | is non-conforming.</p> | ||
| 2176 | |||
| 2177 | <dl> | ||
| 2178 | <dt>HTML <code>meta</code> element, <code>http-equiv</code> attribute</dt> | ||
| 2179 | wakaba | 1.15 | <dd><p>Only values <code>Default-Style</code> and <code>Refresh</code> |
| 2180 | are allowed.</p> | ||
| 2181 | wakaba | 1.8 | <p>Value <code>Content-Type</code> is obsolete; for charset |
| 2182 | declaration, the <code>charset</code> attribute can be used as: | ||
| 2183 | <pre class="html example"><code><meta charset="<var>charset-name</var>"></code></pre> | ||
| 2184 | ... where <var>charset-name</var> is a name of the character encoding | ||
| 2185 | of the document, such as <code>utf-8</code>.</p> | ||
| 2186 | <p>Values <code>Content-Style-Type</code> and | ||
| 2187 | <code>Content-Script-Type</code> are currently not allowed.</p> | ||
| 2188 | <p>Value <code>Keywords</code> is not allowed. Use | ||
| 2189 | <code>name</code> attribute instead of <code>http-equiv</code> | ||
| 2190 | attribute.</p> | ||
| 2191 | <p>Values <code>Expires</code>, <code>Pragma</code>, | ||
| 2192 | and <code>Cache-Control</code> are not allowed; | ||
| 2193 | use <em>real</em> HTTP header fields for cache control.</p></dd> | ||
| 2194 | </dl> | ||
| 2195 | </d:desc> | ||
| 2196 | wakaba | 1.2 | </d:item> |
| 2197 | |||
| 2198 | wakaba | 1.14 | <d:item name="enumerated:invalid:http-equiv:content-type" |
| 2199 | class="attribute-value-error"> | ||
| 2200 | wakaba | 1.16 | <d:message xml:lang="en">Character encoding declaration syntax |
| 2201 | wakaba | 1.15 | <code class="html bad example"><meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"></code> |
| 2202 | wakaba | 1.14 | is obsolete.</d:message> |
| 2203 | <d:desc xml:lang="en"> | ||
| 2204 | wakaba | 1.16 | <p>Old long character encoding declaration syntax |
| 2205 | wakaba | 1.15 | <code class="html bad example"><meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"></code> |
| 2206 | wakaba | 1.14 | is in use. The document is non‐conforming.</p> |
| 2207 | |||
| 2208 | wakaba | 1.16 | <p>The new character encoding declaration syntax is: |
| 2209 | wakaba | 1.15 | <pre class="html example"><code><meta charset="<var>charset-name</var>"></code></pre> |
| 2210 | wakaba | 1.14 | </p> |
| 2211 | </d:desc> | ||
| 2212 | </d:item> | ||
| 2213 | |||
| 2214 | wakaba | 1.30 | <d:item name="enumerated:non-conforming" |
| 2215 | modules="ContentChecker::HTML"> | ||
| 2216 | <d:message xml:lang="en">Attribute value <code><var>{@}</var></code> | ||
| 2217 | is not allowed.</d:message> | ||
| 2218 | </d:item> | ||
| 2219 | |||
| 2220 | <d:item name="duplicate http-equiv" | ||
| 2221 | modules="ContentChecker::HTML"> | ||
| 2222 | <d:message xml:lang="en">There is another pragma | ||
| 2223 | <code><var>{value}</var></code>.</d:message> | ||
| 2224 | </d:item> | ||
| 2225 | |||
| 2226 | wakaba | 1.3 | <d:item name="duplicate ID" |
| 2227 | wakaba | 1.30 | class="attribute-value-error" |
| 2228 | modules="ContentChecker::XML ContentChecker::HTML"> | ||
| 2229 | wakaba | 1.3 | <d:message xml:lang="en">This identifier has already been |
| 2230 | assigned to another element.</d:message> | ||
| 2231 | <!-- @@ <id=a xml:id=a>? --> | ||
| 2232 | </d:item> | ||
| 2233 | |||
| 2234 | wakaba | 1.30 | <d:item name="duplicate token" |
| 2235 | wakaba | 1.32 | modules="ContentChecker::HTML HTML::Table"> |
| 2236 | wakaba | 1.30 | <d:message xml:lang="en">The token <code><var>{value}</var></code> |
| 2237 | appears in the attribute value twice.</d:message> | ||
| 2238 | </d:item> | ||
| 2239 | |||
| 2240 | <d:item name="empty attribute value" | ||
| 2241 | modules="ContentChecker::HTML"> | ||
| 2242 | wakaba | 1.42 | <d:message xml:lang="en">The attribute value is empty.</d:message> |
| 2243 | <d:message xml:lang="ja">属性値が空です。</d:message> | ||
| 2244 | </d:item> | ||
| 2245 | |||
| 2246 | <d:item name="empty style sheet title" | ||
| 2247 | modules="ContentChecker::HTML"> | ||
| 2248 | <d:message xml:lang="en">The value of the <code>title</code> attribute | ||
| 2249 | is empty.</d:message> | ||
| 2250 | <d:message xml:lang="ja"><code>title</code> 属性の値が空です。</d:message> | ||
| 2251 | <d:desc xml:lang="en"> | ||
| 2252 | <p>The <code>title</code> attribute value of the <code>link</code> | ||
| 2253 | element that defines an alternate style sheet is an empty value.</p> | ||
| 2254 | |||
| 2255 | <p>A <code>link</code> element whose <code>rel</code> attribute | ||
| 2256 | is <code>alternate stylesheet</code> defines an alternate style sheet. | ||
| 2257 | An alternate style sheet must be associated with a name using the | ||
| 2258 | <code>title</code> attribute. The name cannot be empty.</p> | ||
| 2259 | </d:desc> | ||
| 2260 | wakaba | 1.30 | </d:item> |
| 2261 | |||
| 2262 | <d:item name="float:out of range" | ||
| 2263 | modules="ContentChecker::HTML"> | ||
| 2264 | <d:message xml:lang="en">The specified value is out of range.</d:message> | ||
| 2265 | </d:item> | ||
| 2266 | |||
| 2267 | <d:item name="float:syntax error" | ||
| 2268 | modules="ContentChecker::HTML"> | ||
| 2269 | <d:message xml:lang="en">The attribute value is not a real | ||
| 2270 | number.</d:message> | ||
| 2271 | </d:item> | ||
| 2272 | |||
| 2273 | <d:item name="fragment points itself" | ||
| 2274 | modules="ContentChecker"> | ||
| 2275 | <d:message xml:lang="en">A fragment identifier references the element | ||
| 2276 | itself.</d:message> | ||
| 2277 | </d:item> | ||
| 2278 | |||
| 2279 | <d:item name="fragment points nothing" | ||
| 2280 | modules="ContentChecker"> | ||
| 2281 | <d:message xml:lang="en">A fragment identifier references no | ||
| 2282 | node.</d:message> | ||
| 2283 | </d:item> | ||
| 2284 | |||
| 2285 | <d:item name="hashref:syntax error" | ||
| 2286 | modules="ContentChecker::HTML"> | ||
| 2287 | <d:message xml:lang="en">A hash−name reference must start with a | ||
| 2288 | <code>#</code> character.</d:message> | ||
| 2289 | </d:item> | ||
| 2290 | |||
| 2291 | <d:item name="id ne name" | ||
| 2292 | modules="ContentChecker::HTML"> | ||
| 2293 | <d:message xml:lang="en">The <code>id</code> attribute value is | ||
| 2294 | different from the <code>name</code> attribute value.</d:message> | ||
| 2295 | </d:item> | ||
| 2296 | |||
| 2297 | <d:item name="integer:syntax error" | ||
| 2298 | modules="ContentChecker::HTML"> | ||
| 2299 | <d:message xml:lang="en">The attribute value is not an integer.</d:message> | ||
| 2300 | </d:item> | ||
| 2301 | |||
| 2302 | wakaba | 1.5 | <d:item name="link type:bad context" |
| 2303 | wakaba | 1.30 | modules="ContentChecker::HTML"> |
| 2304 | <d:message xml:lang="en">The link type <code><var>{value}</var></code> | ||
| 2305 | wakaba | 1.4 | cannot be specified for this element.</d:message> |
| 2306 | <d:desc xml:lang="en"> | ||
| 2307 | <p>The specified link type cannot be used for the element. | ||
| 2308 | The document is non-conforming.</p> | ||
| 2309 | |||
| 2310 | <p>Link types are associated with limited set of elements. | ||
| 2311 | They cannot be used with other elements.</p> | ||
| 2312 | |||
| 2313 | <p>For example, link type <code>bookmark</code> | ||
| 2314 | can be used with <code>a</code> or <code>area</code> element, | ||
| 2315 | while it cannot be used with <code>link</code> element.</p> | ||
| 2316 | </d:desc> | ||
| 2317 | </d:item> | ||
| 2318 | |||
| 2319 | wakaba | 1.30 | <d:item name="invalid attribute value" |
| 2320 | class="attribute-value-error" | ||
| 2321 | wakaba | 1.31 | modules="ContentChecker::XML ContentChecker::HTML ContentChecker::Atom"> |
| 2322 | wakaba | 1.30 | <d:message xml:lang="en">Attribute value <code><var>{@}</var></code> |
| 2323 | is not an allowed value.</d:message> | ||
| 2324 | </d:item> | ||
| 2325 | |||
| 2326 | <d:item name="length:syntax error" | ||
| 2327 | modules="ContentChecker::HTML"> | ||
| 2328 | <d:message xml:lang="en">The attribute value is not a length | ||
| 2329 | value.</d:message> | ||
| 2330 | </d:item> | ||
| 2331 | |||
| 2332 | wakaba | 1.4 | <d:item name="link type:non-conforming" |
| 2333 | wakaba | 1.30 | modules="ContentChecker::HTML"> |
| 2334 | <d:message xml:lang="en">The link type <code><var>{value}</var></code> | ||
| 2335 | wakaba | 1.4 | is non-conforming.</d:message> |
| 2336 | <d:desc xml:lang="en"> | ||
| 2337 | wakaba | 1.6 | <p>The specified link type is non-conforming, and therefore |
| 2338 | the document is non-conforming.</p> | ||
| 2339 | wakaba | 1.4 | |
| 2340 | wakaba | 1.12 | <dl class="switch"> |
| 2341 | wakaba | 1.6 | <dt>Link type <code>contents</code></dt> |
| 2342 | <dd>Use link type <code>index</code>.</dd> | ||
| 2343 | <dt>Link type <code>copyright</code></dt> | ||
| 2344 | <dd>Use link type <code>license</code>.</dd> | ||
| 2345 | <dt>Link type <code>home</code></dt> | ||
| 2346 | <dd>Use link type <code>index</code>.</dd> | ||
| 2347 | wakaba | 1.12 | <dt>Link type <code>previous</code></dt> |
| 2348 | <dd>Use link type <code>prev</code>.</dd> | ||
| 2349 | wakaba | 1.6 | <dt>Link type <code>start</code></dt> |
| 2350 | <dd>Use link type <code>first</code>.</dd> | ||
| 2351 | wakaba | 1.12 | <dt>Link type <code>toc</code> or <code>top</code></dt> |
| 2352 | wakaba | 1.6 | <dd>Use link type <code>index</code>.</dd> |
| 2353 | </dl> | ||
| 2354 | wakaba | 1.4 | </d:desc> |
| 2355 | </d:item> | ||
| 2356 | |||
| 2357 | wakaba | 1.30 | <d:item name="meta content-type syntax error" |
| 2358 | modules="ContentChecker::HTML"> | ||
| 2359 | <d:message xml:lang="en">The specified value is not a valid as a long | ||
| 2360 | character encoding declaration.</d:message> | ||
| 2361 | </d:item> | ||
| 2362 | |||
| 2363 | <d:item name="mismatched charset name" | ||
| 2364 | modules="ContentChecker::HTML"> | ||
| 2365 | <d:message xml:lang="en">The specified character encoding name | ||
| 2366 | <code><var>{value}</var></code> is different from the actual document | ||
| 2367 | character encoding <code><var>{text}</var></code>.</d:message> | ||
| 2368 | wakaba | 1.17 | <d:desc xml:lang="en"> |
| 2369 | <p>The specified character encoding name is different from | ||
| 2370 | the character encoding of the document. The document | ||
| 2371 | is non‐conforming.</p> | ||
| 2372 | </d:desc> | ||
| 2373 | </d:item> | ||
| 2374 | |||
| 2375 | wakaba | 1.30 | <d:item name="mismatched charset name not checked" |
| 2376 | mopdules="ContentChecker::HTML"> | ||
| 2377 | <d:message xml:lang="en">Whether the specified character encoding name | ||
| 2378 | <code><var>{value}</var></code> matches to the actual character encoding | ||
| 2379 | name cannot be checked since the input is not a byte stream.</d:message> | ||
| 2380 | </d:item> | ||
| 2381 | |||
| 2382 | <d:item name="mode:syntax error" | ||
| 2383 | modules="ContentChecker::HTML"> | ||
| 2384 | <d:message xml:lang="en">The attribute value is not a valid mode | ||
| 2385 | name.</d:message> | ||
| 2386 | </d:item> | ||
| 2387 | |||
| 2388 | <d:item name="nninteger:out of range" | ||
| 2389 | modules="ContentChecker::HTML"> | ||
| 2390 | <d:message xml:lang="en">The specified value is out of range.</d:message> | ||
| 2391 | </d:item> | ||
| 2392 | |||
| 2393 | <d:item name="nninteger:syntax error" | ||
| 2394 | modules="ContentChecker::HTML"> | ||
| 2395 | <d:message xml:lang="en">The attribute value is not a non‐negative | ||
| 2396 | integer.</d:message> | ||
| 2397 | </d:item> | ||
| 2398 | |||
| 2399 | <d:item name="no referenced map" | ||
| 2400 | modules="ContentChecker"> | ||
| 2401 | <d:message xml:lang="en">The <code>usemap</code> attribute references | ||
| 2402 | no image map.</d:message> | ||
| 2403 | </d:item> | ||
| 2404 | |||
| 2405 | <d:item name="no referenced menu" | ||
| 2406 | modules="ContentChecker"> | ||
| 2407 | <d:message xml:lang="en">The <code>contextmenu</code> attribute references | ||
| 2408 | no menu.</d:message> | ||
| 2409 | </d:item> | ||
| 2410 | |||
| 2411 | wakaba | 1.32 | <d:item name="no referenced header cell" |
| 2412 | modules="ContentChecker"> | ||
| 2413 | <d:message xml:lang="en">There is no table header cell whose <code>id</code> | ||
| 2414 | is <code><var>{value}</var></code> in the same table.</d:message> | ||
| 2415 | </d:item> | ||
| 2416 | |||
| 2417 | wakaba | 1.30 | <d:item name="refresh:syntax error" |
| 2418 | modules="ContentChecker::HTML"> | ||
| 2419 | <d:message xml:lang="en">the specified value is not a valid as part | ||
| 2420 | of a <code>Refresh</code> pragma.</d:message> | ||
| 2421 | </d:item> | ||
| 2422 | |||
| 2423 | <d:item name="repeat:syntax error" | ||
| 2424 | modules="ContentChecker::HTML"> | ||
| 2425 | <d:message xml:lang="en">The attribute value is not an integer or | ||
| 2426 | a string <code>template</code>.</d:message> | ||
| 2427 | </d:item> | ||
| 2428 | |||
| 2429 | wakaba | 1.3 | <d:item name="reserved browsing context name" |
| 2430 | class="attribute-value-error"> | ||
| 2431 | wakaba | 1.6 | <d:message xml:lang="en">Browsing context name |
| 2432 | <code><var>{@}</var></code> is reserved.</d:message> | ||
| 2433 | <d:desc xml:lang="en"> | ||
| 2434 | wakaba | 1.3 | <p>The specified browsing context name is reserved. |
| 2435 | The document is non-conforming.</p> | ||
| 2436 | |||
| 2437 | <p>Names of browsing contexts starting with <code>_</code> | ||
| 2438 | (<code>U+005F</code> <code class="charname">LOW LINE</code>) | ||
| 2439 | are reserved so that it must not be used.</p> | ||
| 2440 | |||
| 2441 | <p>Old version of HTML, non-HTML markup languages, and | ||
| 2442 | Web browsers define or implements special reserved | ||
| 2443 | browsing context names <code>_blank</code>, | ||
| 2444 | <code>_main</code>, and <code>_replace</code>. | ||
| 2445 | However, they are <em>not</em> conforming attribute values.</p> | ||
| 2446 | wakaba | 1.6 | </d:desc> |
| 2447 | wakaba | 1.3 | </d:item> |
| 2448 | |||
| 2449 | wakaba | 1.30 | <d:item name="Reserved Prefixes and Namespace Names:Name" |
| 2450 | modules="ContentChecker::XML"> | ||
| 2451 | <d:message xml:lang="en">Namespace name <code><var>{text}</var></code> | ||
| 2452 | is reserved and cannot be used for an arbitrary prefix.</d:message> | ||
| 2453 | </d:item> | ||
| 2454 | wakaba | 1.2 | |
| 2455 | wakaba | 1.30 | <d:item name="Reserved Prefixes and Namespace Names:Prefix" |
| 2456 | modules="ContentChecker::XML"> | ||
| 2457 | <d:message xml:lang="en">Namespace prefix <code><var>{text}</var></code> | ||
| 2458 | is reserved and cannot be used for an arbitrary namespace name.</d:message> | ||
| 2459 | </d:item> | ||
| 2460 | wakaba | 1.4 | |
| 2461 | wakaba | 1.30 | <d:item name="link type:proposed" |
| 2462 | modules="ContentChecker::HTML"> | ||
| 2463 | <d:message xml:lang="en">Link type <code><var>{value}</var></code> | ||
| 2464 | wakaba | 1.4 | is proposed but not accepted yet; it <em>should not</em> be |
| 2465 | used until it has been accepted.</d:message> | ||
| 2466 | <d:desc> | ||
| 2467 | <p>The link type is in the <i>proposed</i> status; it | ||
| 2468 | <em>should not</em> be used until it has been | ||
| 2469 | accepted.</p> | ||
| 2470 | |||
| 2471 | <p><strong>Warning</strong>: The data served to the | ||
| 2472 | conforming checker might be out of date; it might have already | ||
| 2473 | wakaba | 1.12 | been accepted or rejected. The document might or might not be |
| 2474 | conforming depending on the status. See WHATWG Wiki | ||
| 2475 | wakaba | 1.4 | for the latest information.</p> |
| 2476 | </d:desc> | ||
| 2477 | </d:item> | ||
| 2478 | |||
| 2479 | wakaba | 1.30 | <d:item name="sizes:syntax error" |
| 2480 | modules="ContentChecker::HTML"> | ||
| 2481 | <d:message xml:lang="en">The specified value <code><var>{value}</var></code> | ||
| 2482 | is not a valid value.</d:message> | ||
| 2483 | </d:item> | ||
| 2484 | |||
| 2485 | <d:item name="space in ID" | ||
| 2486 | modules="ContentChecker::HTML"> | ||
| 2487 | <d:message xml:lang="en">White space characters are not allowed | ||
| 2488 | in the <code>id</code> attribute.</d:message> | ||
| 2489 | </d:item> | ||
| 2490 | |||
| 2491 | <d:item name="template:not template" | ||
| 2492 | modules="ContentChecker ContentChecker::HTML"> | ||
| 2493 | <d:message xml:lang="en">The node referenced by the <code>template</code> | ||
| 2494 | attribute is not a template.</d:message> | ||
| 2495 | </d:item> | ||
| 2496 | |||
| 2497 | <d:item name="window name:empty" | ||
| 2498 | modules="ContentChecker::HTML"> | ||
| 2499 | <d:message xml:lang="en">Browsing context name must not be empty.</d:message> | ||
| 2500 | </d:item> | ||
| 2501 | |||
| 2502 | <d:item name="window name:reserved" | ||
| 2503 | modules="ContentChecker::HTML"> | ||
| 2504 | <d:message xml:lang="en">Browsing context name | ||
| 2505 | <code><var>{value}</var></code> is reserved.</d:message> | ||
| 2506 | </d:item> | ||
| 2507 | |||
| 2508 | <d:item name="word not allowed" | ||
| 2509 | modules="ContentChecker::HTML"> | ||
| 2510 | <d:message xml:lang="en">The word <code><var>{value}</var></code> is not | ||
| 2511 | allowed in this attribute.</d:message> | ||
| 2512 | </d:item> | ||
| 2513 | |||
| 2514 | wakaba | 1.32 | <d:item name="XML 1.0 NCName:syntax error" |
| 2515 | modules="RDFXML"> | ||
| 2516 | <d:message xml:lang="en">The specified value is not a legal XML Namespaces | ||
| 2517 | 1.0 <code>NCName</code>.</d:message> | ||
| 2518 | </d:item> | ||
| 2519 | |||
| 2520 | wakaba | 1.41 | <d:item name="xml:lang ne lang" |
| 2521 | modules="ContentChecker::XML ContentChecker::HTML"> | ||
| 2522 | <d:message xml:lang="en">The value of the <code>xml:lang</code> attribute | ||
| 2523 | is different from the value of the <code>lang</code> attribute.</d:message> | ||
| 2524 | <d:message xml:lang="ja"><code>xml:lang</code> 属性の値が <code>lang</code> | ||
| 2525 | 属性の値と異なります。</d:message> | ||
| 2526 | <d:desc xml:lang="en"> | ||
| 2527 | <p>The value of the <code>xml:lang</code> attribute (either the | ||
| 2528 | <code>lang</code> attribute in the <code>xml</code> (i.e. | ||
| 2529 | <code>http://www.w3.org/XML/1998/namespace</code>) namespace, or | ||
| 2530 | the <code>xml:lang</code> attribute in no namespace) for the element has | ||
| 2531 | different value than that of the <code>lang</code> attribute in no | ||
| 2532 | namespace.</p> | ||
| 2533 | |||
| 2534 | <p>For historical reason, there are two attributes applicable to HTML | ||
| 2535 | elements to specify language information of an element: <code>lang</code> | ||
| 2536 | and <code>xml:lang</code>. In HTML documents, only <code>lang</code> | ||
| 2537 | attribute in no namespace is allowed and take effect; the | ||
| 2538 | <code>xml:lang</code> attribute in no namespace is ignored in HTML | ||
| 2539 | documents. In XHTML documents, both <code>lang</code> and | ||
| 2540 | <code>xml:lang</code> attributes are allowed.</p> | ||
| 2541 | |||
| 2542 | <p>In general, <em>only the <code>lang</code> attribute</em> need to be | ||
| 2543 | specified for an element.</p> | ||
| 2544 | |||
| 2545 | <p>If both <code>lang</code> and <code>xml:lang</code> attributes are | ||
| 2546 | specified on the same element, their values must be the same value.</p> | ||
| 2547 | </d:desc> | ||
| 2548 | <d:desc xml:lang="ja"> | ||
| 2549 | <p><code>xml:lang</code> 属性 (<code>xml</code> (= | ||
| 2550 | <code>http://www.w3.org/XML/1998/namespace</code>) 名前空間の | ||
| 2551 | <code>lang</code> 属性や名前空間に属さない | ||
| 2552 | <code>xml:lang</code> 属性) の値が同じ要素の名前空間に属さない | ||
| 2553 | <code>lang</code> 属性の値と異なっています。</p> | ||
| 2554 | |||
| 2555 | <p>歴史的な理由により、 HTML 要素の言語指定のための属性は | ||
| 2556 | <code>lang</code> と <code>xml:lang</code> の2つがあります。 HTML | ||
| 2557 | 文書では名前空間に属さない <code>lang</code> 属性だけが認められており、 | ||
| 2558 | かつ効力があります。名前空間に属さない | ||
| 2559 | <code>xml:lang</code> 属性は HTML 文書では無視されます。 XHTML 文書では | ||
| 2560 | <code>lang</code> 属性も <code>xml:lang</code> 属性も認められています。</p> | ||
| 2561 | |||
| 2562 | <p>通常、要素の言語情報は <em><code>lang</code> | ||
| 2563 | 属性だけ</em>を使って指定すれば十分です。</p> | ||
| 2564 | |||
| 2565 | <p><code>lang</code> 属性と <code>xml:lang</code> | ||
| 2566 | 属性の両方を同じ要素に指定する場合、 | ||
| 2567 | 両者の値は同じでなければなりません。</p> | ||
| 2568 | </d:desc> | ||
| 2569 | </d:item> | ||
| 2570 | |||
| 2571 | wakaba | 1.4 | </section> |
| 2572 | |||
| 2573 | wakaba | 1.2 | <section id="table-model-errors"> |
| 2574 | <h2>Table Model Errors</h2> | ||
| 2575 | |||
| 2576 | wakaba | 1.32 | <d:item name="cell overlapping" |
| 2577 | modules="HTML::Table"> | ||
| 2578 | <d:message xml:lang="en">Cell slot (<var>{text}</var>) is filled by | ||
| 2579 | multiple cells.</d:message> | ||
| 2580 | </d:item> | ||
| 2581 | |||
| 2582 | <d:item name="colspan creates column with no anchored cell" | ||
| 2583 | modules="HTML::Table"> | ||
| 2584 | wakaba | 1.3 | <d:message xml:lang="en">This <code>colspan</code> attribute |
| 2585 | results in creating a table column that does not contain | ||
| 2586 | any cell anchored to it.</d:message> | ||
| 2587 | </d:item> | ||
| 2588 | |||
| 2589 | wakaba | 1.32 | <d:item name="column with no anchored cell" |
| 2590 | modules="HTML::Table"> | ||
| 2591 | <d:message xml:lang="en">This column has no anchored cell.</d:message> | ||
| 2592 | </d:item> | ||
| 2593 | |||
| 2594 | wakaba | 1.2 | <d:item name="table:no cell in last row" |
| 2595 | class="table-model-error"> | ||
| 2596 | <d:message xml:lang="en">The table has no cell (<code>td</code> or | ||
| 2597 | <code>th</code>) in the last row.</d:message> | ||
| 2598 | </d:item> | ||
| 2599 | |||
| 2600 | wakaba | 1.6 | <d:item name="table:rowspan extends table" |
| 2601 | class="table-model-error"> | ||
| 2602 | <d:message xml:lang="en">This <code>rowspan</code> attribute | ||
| 2603 | results in creating a table row that does not contain | ||
| 2604 | any cell anchored to it.</d:message> | ||
| 2605 | <d:desc xml:lang="en"> | ||
| 2606 | <p>The <code>rowspan</code> attribute value of the cell | ||
| 2607 | is so specified that it extends a table in the row axis. | ||
| 2608 | However, the extended row does not contain any cell by itself. | ||
| 2609 | The document is non-conforming.</p> | ||
| 2610 | |||
| 2611 | <p>For example, the table below is non-conforming: | ||
| 2612 | wakaba | 1.15 | <pre class="html bad example"><code><table> |
| 2613 | wakaba | 1.6 | <tbody> |
| 2614 | <tr><td rowspan=2></td></tr> | ||
| 2615 | </tbody> | ||
| 2616 | </table></code></pre> | ||
| 2617 | wakaba | 1.9 | ... since the second row contains only |
| 2618 | a cell that spans between first and second rows.</p> | ||
| 2619 | wakaba | 1.6 | </d:desc> |
| 2620 | </d:item> | ||
| 2621 | |||
| 2622 | wakaba | 1.32 | <d:item name="row with no anchored cell" |
| 2623 | modules="HTML::Table"> | ||
| 2624 | <d:message xml:lang="en">This row has no anchored cell.</d:message> |