/[pub]/test/html-webhacc/error-description-source.xml
Suika

Diff of /test/html-webhacc/error-description-source.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by wakaba, Wed Nov 7 11:29:46 2007 UTC revision 1.23 by wakaba, Sun May 18 07:24:04 2008 UTC
# Line 11  Web Document Conformance Checker (BETA)< Line 11  Web Document Conformance Checker (BETA)<
11  <body>  <body>
12  <h1>Description of Errors</h1>  <h1>Description of Errors</h1>
13    
14    <section id="character-encoding-layer">
15    <h2>Character Encoding Layer Errors</h2>
16    
17    <d:item name="illegal-octets-error" class="error-category-charset" level="m">
18      <d:message xml:lang="en">An illegal octet in the input stream.</d:message>
19    </d:item>
20    </section>
21    
22    <section id="html5-character-encoding">
23    <h2>HTML5 Character Encoding Errors</h2>
24    
25    <d:item name="character encoding" class="format-charset must" level="m">
26      <d:message xml:lang="en">Character encoding <code><var>$0</var></code>
27      is not allowed for <abbr>HTML</abbr> document.</d:message>
28      <d:desc xml:lang="en">
29        <p>The character encoding used for the document is not allowed
30        for <abbr>HTML</abbr> document.  The document is non‐conforming.</p>
31      </d:desc>
32    </d:item>
33    
34    <d:item name="character encoding" class="format-charset should"
35        level="s">
36      <d:message xml:lang="en">Character encoding <code><var>$0</var></code>
37      should not be used for <abbr>HTML</abbr> document.</d:message>
38      <d:desc xml:lang="en">
39        <p>The character encoding used for the document is not recommended
40        for <abbr>HTML</abbr> document.  The document is non‐conforming
41        unless there is any good reason to use that encoding.</p>
42      </d:desc>
43    </d:item>
44    
45    <d:item name="character encoding" class="format-charset warning"
46        level="w">
47      <d:message xml:lang="en">Use of UTF-8 is encouraged.</d:message>
48      <d:desc xml:lang="en">
49        <p>Use of UTF-8 as the character encoding of the document is encouraged,
50        though the use of another character encoding is still conforming.</p>
51      </d:desc>
52    </d:item>
53    
54    <d:item name="character encoding" class="format-charset unsupported"
55        level="unsupported">
56      <d:message xml:lang="en">Conformance for character encoding requirements
57      cannot be checked.</d:message>
58      <d:desc xml:lang="en">
59        <p>The conformance checker cannot detect whether the input document
60        met the requirements on character encoding, since the document
61        is not inputed as a serialized byte sequence.  The document is
62        not conforming if it is not encoded in an appropriate character
63        encoding with appropriate labeling.</p>
64      </d:desc>
65    </d:item>
66    
67    <d:item name="no character encoding declaration" class="format-charset error"
68        level="m">
69      <d:message xml:lang="en">There is no character encoding
70      declaration.</d:message>
71      <d:desc xml:lang="en">
72        <p>The document does not contain a character encoding
73        declaration.  Unless the character encoding is explicitly
74        specified in lower‐level protocol, e.g. in <abbr>HTTP</abbr>,
75        or is implied by <abbr>BOM</abbr>, there must be a character
76        encoding declaration.  The document is non‐conforming.</p>
77    
78        <p>The long character encoding declaration syntax
79        <code class="html bad example">&lt;meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"></code>
80        is obsolete.  The new syntax is:</p>
81        <pre class="html example"><code>&lt;meta charset="<var>charset-name</var>"></code></pre>
82    
83        <p>Note that the <code>encoding</code> declaration in <abbr>XML</abbr>
84        declaration has no effect for <abbr>HTML</abbr> document.</p>
85      </d:desc>
86    </d:item>
87    
88    <d:item name="non ascii superset" class="format-charset error"
89        level="m">
90      <d:message xml:lang="en">No character encoding metadata is found
91      in lower‐level protocol nor is there <abbr>BOM</abbr>, while
92      character encoding <code><var>$0</var></code>
93      is not a superset of <abbr>ASCII</abbr>.</d:message>
94      <d:desc xml:lang="en">
95        <p>The document is not labeled with character encoding name
96        in lower‐level protocol, e.g. in <abbr>HTTP</abbr>, and
97        the document is not begin with <abbr>BOM</abbr>.  In addition,
98        the character encoding of the document is not a superset of
99        <abbr>ASCII</abbr>.  The document is non‐conforming.</p>
100    
101        <p>Unless there is a <abbr>BOM</abbr>, the character encoding
102        for the document must be specified in e.g. <abbr>HTTP</abbr>‐level,
103        as:</p>
104        <pre class="http example"><code>Content-Type: text/html; charset=<var>charset-name</var></code></pre>
105    
106        <p>Existence of <abbr>HTML</abbr> character encoding declaration, i.e.
107        <code class="html example">&lt;meta charset="<var>charset-name</var>"></code>,
108        does not allow to omit <code>charset</code> parameter
109        for <abbr>HTML</abbr> document encoded in non‐<abbr>ASCII</abbr>
110        compatible encoding.</p>
111    
112        <p>Character encodings <code>Shift_JIS</code>, <code>Windows-31J</code>,
113        and <code>ISO-2022-JP</code> are <em>not</em> a superset of
114        <abbr>ASCII</abbr> for the purpose of <abbr>HTML</abbr> conformance.</p>
115      </d:desc>
116    </d:item>
117    
118    <d:item name="charset label detected" class="format-charset warning"
119        level="w">
120      <d:message xml:lang="en">While parsing the document as
121      <code><var>$0</var></code>, a character encoding declaration specifying
122      character encoding as <code><var>$1</var></code> is found.  The document
123      is reparsed.</d:message>
124      <d:desc xml:lang="en">
125        <p>While parsing a document in a character encoding,
126        a character encoding declaration which declares the character
127        encoding of the document as another character encoding is found.
128        The occurence of this warning itself does not make the document
129        non‐conforming.  However, the failure of the first attempt to
130        to detect the character encoding might be a result of non‐conformance
131        of the document.</p>
132    
133        <p>The document will be reparsed from the beginning.  Some error
134        or warning might be reported again.</p>
135    
136        <p>These are suggestions to avoid this warning:</p>
137        <ul>
138        <li>Specify <code>charset</code> parameter in the <code>Content-Type</code>
139        field in the <abbr>HTTP</abbr> header, as:
140        <pre class="HTTP example"><code>Content-Type: text/html; charset="<var>charset-name</var>"</code></pre></li>
141        <li>Put the character encoding declaration
142        (<code class="html example">&lt;meta charset="<var>charset-name</var>"></code>)
143        just after <code class="html example">&lt;head></code> start tag.</li>
144        <li>Use <code>UTF-8</code>.</li>
145        </ul>
146      </d:desc>
147    </d:item>
148    </section>
149    
150  <section id="html5-tokenize-error">  <section id="html5-tokenize-error">
151  <h2>HTML5 Parse Errors in Tokenization Stage</h2>  <h2>HTML5 Parse Errors in Tokenization Stage</h2>
152    
# Line 46  Web Document Conformance Checker (BETA)< Line 182  Web Document Conformance Checker (BETA)<
182  <d:item name="bare ero"  <d:item name="bare ero"
183      class="tokenize-error">      class="tokenize-error">
184    <d:message xml:lang="en">The <code>&amp;</code> character must    <d:message xml:lang="en">The <code>&amp;</code> character must
185    introduce a reference.</d:message>    be escaped as <code class="html example">&amp;amp;</code>.</d:message>
186    <d:desc xml:lang="en">    <d:desc xml:lang="en">
187      <p>An <code>&amp;</code> (<code>U+0026</code>      <p>An <code>&amp;</code> character which
     <code class="charname">AMPERSAND</code>) character which  
188      is not part of any reference appears in the input stream.      is not part of any reference appears in the input stream.
189      The document is non-conforming.</p>      The document is non‐conforming.</p>
190    
191      <p><strong>Any <code>&amp;</code> character in URI (or IRI)      <p><em>Any <code>&amp;</code> character in URI (or IRI)
192      must be escaped as <code>&amp;amp;</code>.</strong></p>      must be escaped as <code class="example">&amp;amp;</code>.</em></p>
193    
194      <p>The <code>&amp;</code> character must      <p>The <code>&amp;</code> character must
195      be the first character of a reference:      be the first character of a reference:
196        <dl>        <dl class="switch">
197        <dt>Named entity reference</dt>        <dt>Named entity reference</dt>
198            <dd><pre class="html example"><code>&amp;<var>entity-name</var>;</code></pre>            <dd><pre class="html example"><code>&amp;<var>entity-name</var>;</code></pre>
199            where <var>entity-name</var> is the name of the            where <var>entity-name</var> is the name of the
# Line 134  Web Document Conformance Checker (BETA)< Line 269  Web Document Conformance Checker (BETA)<
269    
270      <p>The string <code>&amp;#</code> must be the first two characters      <p>The string <code>&amp;#</code> must be the first two characters
271      of a reference:      of a reference:
272        <dl>        <dl class="switch">
273        <dt>Numeric character reference</dt>        <dt>Numeric character reference</dt>
274            <dd><pre class="html example"><code>&amp;#<var>d</var>;</code></pre>            <dd><pre class="html example"><code>&amp;#<var>d</var>;</code></pre>
275            where <var>d</var> is the decimal representation of            where <var>d</var> is the decimal representation of
# Line 189  Web Document Conformance Checker (BETA)< Line 324  Web Document Conformance Checker (BETA)<
324    
325      <dl class="switch">      <dl class="switch">
326      <dt>Comments</dt>      <dt>Comments</dt>
327        <dd>In HTML documents, comments must be introduced by        <dd>In HTML document, comments must be introduced by
328        <code>&lt;!--</code> (<code>&lt;!</code> <em>immediately</em> followed        <code class="example">&lt;!--</code> (<code>&lt;!</code>
329          <em>immediately</em> followed
330        by <em>two</em> <code>-</code>s) and must be terminated by        by <em>two</em> <code>-</code>s) and must be terminated by
331        <code>--></code>.  Strings <code>&lt;!</code> not followed        <code class="example">--></code>.
332          Strings <code>&lt;!</code> not followed
333        by <code>--</code> and <code>&lt;!-</code> not followed by        by <code>--</code> and <code>&lt;!-</code> not followed by
334        <code>-</code> are not valid open delimiters for comments.</dd>        <code>-</code> are not valid open delimiters for comments.</dd>
335      <dt>Marked sections, including <code>CDATA</code> sections</dt>      <dt>Marked sections, including <code>CDATA</code> sections</dt>
336        <dd>Marked sections are not allowed in HTML documents.</dd>        <dd>Marked sections are not allowed in HTML document.</dd>
337      <dt>Markup declarations</dt>      <dt>Markup declarations</dt>
338        <dd>Markup declarations, except <code>DOCTYPE</code>        <dd>Markup declarations, except for <code>DOCTYPE</code>
339        and comment declarations, are not allowed in HTML documents.</dd>        and comment declarations, are not allowed in HTML document.</dd>
340      <dt>String <code>&lt;!</code></dt>      <dt>String <code>&lt;!</code></dt>
341        <dd>String <code>&lt;!</code> must be escaped as        <dd>String <code>&lt;!</code> must be escaped as
342        <code>&amp;lt;!</code>.</dd>        <code class="example">&amp;lt;!</code>.</dd>
343      </dl>      </dl>
344    </d:desc>    </d:desc>
345  </d:item>  </d:item>
# Line 277  Web Document Conformance Checker (BETA)< Line 414  Web Document Conformance Checker (BETA)<
414      <dt><code>&lt;script/></code></dt>      <dt><code>&lt;script/></code></dt>
415          <dd><p>The polytheistic slash cannot be used for <code>script</code>          <dd><p>The polytheistic slash cannot be used for <code>script</code>
416          element.  Even for an empty <code>script</code> element,          element.  Even for an empty <code>script</code> element,
417          there must be an explicit end tag <code>&lt;/script></code>.</p>          there must be an explicit end tag
418            <code class="html example">&lt;/script></code>.</p>
419    
420          <p><strong>NOTE</strong>: Though some user agents interpret          <p><strong>NOTE</strong>: Though some user agents interpret
421          polytheistic slash for <code>script</code> element as the          polytheistic slash for <code>script</code> element as the
# Line 294  Web Document Conformance Checker (BETA)< Line 432  Web Document Conformance Checker (BETA)<
432          to allow polytheistic slash for these elements.</dd>          to allow polytheistic slash for these elements.</dd>
433      <dt><code>&lt;a/></code>, <code>&lt;p/></code></dt>      <dt><code>&lt;a/></code>, <code>&lt;p/></code></dt>
434          <dd>These elements are not always empty and therefore          <dd>These elements are not always empty and therefore
435          polytheistic slash is not allowed.</dd>          polytheistic slash is not allowed.  Use explicit end tag
436            to represent empty element as:
437              <pre class="example html"><code>&lt;p>&lt;/p></code></pre>
438            </dd>
439      </dl>      </dl>
440    
441      <p>Note that, unlike in XML, the polytheistic slash has      <p>Note that, unlike in XML, the polytheistic slash has
# Line 319  Web Document Conformance Checker (BETA)< Line 460  Web Document Conformance Checker (BETA)<
460        <dd>An <abbr>XBL</abbr> binding cannot be associated by        <dd>An <abbr>XBL</abbr> binding cannot be associated by
461        <abbr title="processing instruction">PI</abbr> in <abbr>HTML</abbr>        <abbr title="processing instruction">PI</abbr> in <abbr>HTML</abbr>
462        document.  Use <code>binding</code> property in <abbr>CSS</abbr>        document.  Use <code>binding</code> property in <abbr>CSS</abbr>
463        style sheet.</dd>        style sheet as:
464            <pre class="html example"><code>&lt;style>
465    p {
466      binding: url(binding.xbl);
467    }
468    &lt;/style></code></pre>
469          </dd>
470      <dt><code>&lt;?xml?&gt;</code> (XML declaration)</dt>      <dt><code>&lt;?xml?&gt;</code> (XML declaration)</dt>
471          <dd>XML declaration is unnecessary for HTML documents.</dd>          <dd>XML declaration is unnecessary for HTML documents.</dd>
472      <dt><code>&lt;?xml-stylesheet?></code> (XML style sheet      <dt><code>&lt;?xml-stylesheet?></code> (XML style sheet
# Line 327  Web Document Conformance Checker (BETA)< Line 474  Web Document Conformance Checker (BETA)<
474          <dd>Use HTML <code>link</code> element with <code>rel</code>          <dd>Use HTML <code>link</code> element with <code>rel</code>
475          attribute set to <code>stylesheet</code> (or,          attribute set to <code>stylesheet</code> (or,
476          <code>alternate stylesheet</code> for an alternate style          <code>alternate stylesheet</code> for an alternate style
477          sheet).</dd>          sheet).
478              <pre class="example html"><code>&lt;link rel=stylesheet href="path/to/stylesheet.css"></code></pre>
479            </dd>
480      <dt><code>&lt;?php?&gt;</code> or      <dt><code>&lt;?php?&gt;</code> or
481      <code>&lt;? <var>... <abbr>PHP</abbr> code ...</var> ?&gt;</code>      <code>&lt;? <var>... <abbr>PHP</abbr> code ...</var> ?&gt;</code>
482      (<abbr>PHP</abbr> code)</dt>      (<abbr>PHP</abbr> code)</dt>
# Line 506  Web Document Conformance Checker (BETA)< Line 655  Web Document Conformance Checker (BETA)<
655        <dd>Though the element is void in earlier versions of Safari,        <dd>Though the element is void in earlier versions of Safari,
656        the <code>canvas</code> element is <em>no</em> longer        the <code>canvas</code> element is <em>no</em> longer
657        defined as empty.  There must be an end tag        defined as empty.  There must be an end tag
658        <code>&lt;/canvas></code>.</dd>        <code class="html example">&lt;/canvas></code>.</dd>
659      </dl>      </dl>
660    
661      <p>Note that misnesting tags, such as      <p>Note that misnesting tags, such as
# Line 540  Web Document Conformance Checker (BETA)< Line 689  Web Document Conformance Checker (BETA)<
689    <d:desc xml:lang="en">    <d:desc xml:lang="en">
690      <p>The document contains a <code>DOCTYPE</code> declaration      <p>The document contains a <code>DOCTYPE</code> declaration
691      that is different from HTML5 <code>DOCTYPE</code> (i.e.      that is different from HTML5 <code>DOCTYPE</code> (i.e.
692      <code>&lt;!DOCTYPE HTML&gt;</code>).  The document is non-conforming.</p>      <code class="example html">&lt;!DOCTYPE HTML&gt;</code>).
693        The document is non‐conforming.</p>
694    
695      <p>The document might or might not be conformant to      <p>The document might or might not be conformant to
696      some version of HTML.  However, conformance to any HTML      some version of HTML.  However, conformance to any HTML
# Line 672  Web Document Conformance Checker (BETA)< Line 822  Web Document Conformance Checker (BETA)<
822                    block-level content, any inline-level content must be                    block-level content, any inline-level content must be
823                    put in e.g. paragraph element such as <code>p</code>.</p>                    put in e.g. paragraph element such as <code>p</code>.</p>
824                    <p>For example, an HTML document fragment                    <p>For example, an HTML document fragment
825                    <code class="bad example">&lt;div>&lt;p>Hello!&lt;/p> World!&lt;/div></code>                    <code class="html bad example">&lt;div>&lt;p>Hello!&lt;/p> World!&lt;/div></code>
826                    is non-conforming, since a word <q>World!</q> does not belong                    is non-conforming, since a word <q>World!</q> does not belong
827                    to any paragraph.  (If not part of any paragraph, what is                    to any paragraph.  (If not part of any paragraph, what is
828                    it!?)  A conforming example would be:                    it!?)  A conforming example would be:
829                      <pre class="example"><code>&lt;div>&lt;p>Hello!&lt;/p> &lt;p>World!&lt;/p>&lt;/div></code></pre>                      <pre class="html example"><code>&lt;div>&lt;p>Hello!&lt;/p> &lt;p>World!&lt;/p>&lt;/div></code></pre>
830                    </p></dd>                    </p></dd>
831                <dt>If the parent element does <em>not</em> allow                <dt>If the parent element does <em>not</em> allow
832                block-level elements as content</dt>                block-level elements as content</dt>
# Line 720  Web Document Conformance Checker (BETA)< Line 870  Web Document Conformance Checker (BETA)<
870    
871      <dl class="switch">      <dl class="switch">
872      <dt><code>html</code> element in an XHTML document</dt>      <dt><code>html</code> element in an XHTML document</dt>
873          <dd><p>In an XHTML document, the root <code>html</code>          <dd><p>In <abbr>XHTML</abbr> document, the root <code>html</code>
874          element must have an <code>xmlns</code> attribute          element must have an <code>xmlns</code> attribute as:
875          whose value is set to            <pre class="xml example"><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"></code></pre></p></dd>
         <code>http://www.w3.org/1999/xhtml</code>.</p></dd>  
876      <dt><code>rss</code> element</dt>      <dt><code>rss</code> element</dt>
877          <dd><p>The document is written in some version of RSS.</p>          <dd><p>The document is written in some version of RSS.</p>
878          <p>The conformance checker does not support any version          <p>The conformance checker does not support any version
879          of RSS.  Use Atom 1.0 for feed documents.</p></dd>          of RSS.  Use Atom 1.0 for feed documents.</p></dd>
880      <dt><code>feed</code> element</dt>      <dt><code>feed</code> element</dt>
881          <dd><p>The Atom <code>feed</code> element must be          <dd><p>The Atom <code>feed</code> element must be
882          in the <code>http://www.w3.org/2004/Atom</code>          in the <code>http://www.w3.org/2005/Atom</code>
883          namespace.</p>          namespace as:
884              <pre class="xml example"><code>&lt;feed xmlns="http://www.w3.org/2005/Atom"></code></pre>
885            </p>
886          <p>The conformance checker does not support Atom 0.3.          <p>The conformance checker does not support Atom 0.3.
887          Use Atom 1.0 for feed documents.</p></dd>          Use Atom 1.0 for feed documents.</p></dd>
888      </dl>      </dl>
# Line 874  Web Document Conformance Checker (BETA)< Line 1025  Web Document Conformance Checker (BETA)<
1025  <section id="attribute-value-errors">  <section id="attribute-value-errors">
1026  <h2>Attribute Value Errors</h2>  <h2>Attribute Value Errors</h2>
1027    
1028    <d:item name="charset:not registered" class="attribute-value-warning warning"
1029        level="w">
1030      <d:message xml:lang="en">Character encoding name <code><var>$0</var></code>
1031      is not registered.</d:message>
1032      <d:desc xml:lang="en">
1033        <p>The specified character encoding name is not registered to
1034        <abbr>IANA</abbr>.  Use of registered character encoding name
1035        is a good practice to facilitate interoperability.</p>
1036    
1037        <dl class="switch">
1038        <dt><code>EUC-TW</code></dt>
1039          <dd><code>EUC-TW</code> is not registered.  Unfortunately, there
1040          is no registered name for that character encoding.  Use
1041          Big5 encoding with character encoding name <code>Big5</code>
1042          if it is enough to represent the document.</dd>
1043        <dt><code>ISO-2022-JP-1</code></dt>
1044          <dd><code>ISO-2022-JP-1</code> is not registered, nevertheless
1045          this character encoding name is documented in
1046          <a href="urn:ietf:rfc:2237"><abbr>RFC</abbr> 2237</a>.  Use
1047          <code>ISO-2022-JP-2</code> instead, since that character encoding
1048          is a superset of ISO-2022-JP-1.</dd>
1049        <dt><code>ISO-2022-JP-3</code>, <code>ISO-2022-JP-3-plane1</code></dt>
1050          <dd>These names are not registered and obsoleted in favor of
1051          <code>ISO-2022-JP-2004</code> and
1052          <code>ISO-2022-JP-2004-plane1</code>.</dd>
1053        <dt><code>ISO-2022-JP-2003</code>,
1054        <code>ISO-2022-JP-2003-plane1</code></dt>
1055          <dd>These names are not registered and corrected to
1056          <code>ISO-2022-JP-2004</code> and
1057          <code>ISO-2022-JP-2004-plane1</code>.</dd>
1058        <dt><code>ISO-2022-JP-2004</code>,
1059        <code>ISO-2022-JP-2004-plane1</code></dt>
1060          <dd>These names are not registered.  Unfortunately, there is
1061          no registered name for these character encodings.</dd>
1062        <dt><code>UTF-8N</code></dt>
1063          <dd><code>UTF-8N</code> is not registered.  Character encoding
1064          name <code>UTF-8</code> represents UTF-8 encoding with or
1065          without <abbr>BOM</abbr>.</dd>
1066        </dl>
1067    
1068        <p><strong>WARNING</strong>: This error might be raised for
1069        a registered character encoding name, since the character encoding
1070        name database of the conformance checker is not complete yet.</p>
1071      </d:desc>
1072    </d:item>
1073    
1074    <d:item name="charset:private" class="attribute-value-warning warning"
1075        level="w">
1076      <d:message xml:lang="en"><code><var>$0</var></code> is a private
1077      character encoding name.</d:message>
1078      <d:desc xml:lang="en">
1079        <p>The specified character encoding name is a private name and
1080        not registered to <abbr>IANA</abbr>.  Use of registered character
1081        encoding name is a good practice to facilitate interoperability.</p>
1082    
1083        <dl class="switch">
1084        <dt><code>x-euc-jp</code></dt>
1085          <dd>Use <code>EUC-JP</code> for the Japanese <abbr>EUC</abbr>
1086          character encoding.</dd>
1087        <dt><code>x-sjis</code></dt>
1088          <dd>Use <code>Shift_JIS</code> for standard Shift encoding scheme of
1089          <abbr>JIS</abbr> coded character set, or <code>Windows-31J</code>
1090          for Microsoft standard character set as implemented by
1091          Microsoft Windows.</dd>
1092        </dl>
1093      </d:desc>
1094    </d:item>
1095    
1096    <d:item name="charset:syntax error" class="attribute-value-error"
1097        level="m">
1098      <d:message xml:lang="en">The specified value is syntactically not a
1099      character encoding name.</d:message>
1100      <d:desc xml:lang="en">
1101        <p>The attribute value must be a character encoding name.  However,
1102        the specified value is not a character encoding name syntactically.
1103        The document is non‐conforming.</p>
1104        <p>Character encoding name is a string of <abbr>ASCII</abbr>
1105        printable characters, up to 40 characters.</p>
1106      </d:desc>
1107    </d:item>
1108    
1109  <d:item name="enumerated:invalid"  <d:item name="enumerated:invalid"
1110      class="attribute-value-error">      class="attribute-value-error">
1111    <d:message xml:lang="en">This attribute only allow a limited set of    <d:message xml:lang="en">This attribute only allow a limited set of
# Line 886  Web Document Conformance Checker (BETA)< Line 1118  Web Document Conformance Checker (BETA)<
1118    
1119      <dl>      <dl>
1120      <dt>HTML <code>meta</code> element, <code>http-equiv</code> attribute</dt>      <dt>HTML <code>meta</code> element, <code>http-equiv</code> attribute</dt>
1121          <dd><p>Only <code>Default-Style</code> and <code>Refresh</code>          <dd><p>Only values <code>Default-Style</code> and <code>Refresh</code>
1122          is allowed.</p>          are allowed.</p>
1123          <p>Value <code>Content-Type</code> is obsolete; for charset          <p>Value <code>Content-Type</code> is obsolete; for charset
1124          declaration, the <code>charset</code> attribute can be used as:          declaration, the <code>charset</code> attribute can be used as:
1125          <pre class="html example"><code>&lt;meta charset="<var>charset-name</var>"></code></pre>          <pre class="html example"><code>&lt;meta charset="<var>charset-name</var>"></code></pre>
# Line 907  Web Document Conformance Checker (BETA)< Line 1139  Web Document Conformance Checker (BETA)<
1139    
1140  <d:item name="enumerated:invalid:http-equiv:content-type"  <d:item name="enumerated:invalid:http-equiv:content-type"
1141      class="attribute-value-error">      class="attribute-value-error">
1142    <d:message xml:lang="en">Charset declaration syntax    <d:message xml:lang="en">Character encoding declaration syntax
1143    <code>&lt;meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"></code>    <code class="html bad example">&lt;meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"></code>
1144    is obsolete.</d:message>    is obsolete.</d:message>
1145    <d:desc xml:lang="en">    <d:desc xml:lang="en">
1146      <p>Old long charset declaration syntax      <p>Old long character encoding declaration syntax
1147      <code>&lt;meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"></code>      <code class="html bad example">&lt;meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"></code>
1148      is in use.  The document is non‐conforming.</p>      is in use.  The document is non‐conforming.</p>
1149    
1150      <p>The new charset declaration syntax is:      <p>The new character encoding declaration syntax is:
1151        <pre><code>&lt;meta charset="<var>charset-name</var>"></code></pre>        <pre class="html example"><code>&lt;meta charset="<var>charset-name</var>"></code></pre>
1152      </p>      </p>
1153    </d:desc>    </d:desc>
1154  </d:item>  </d:item>
# Line 970  Web Document Conformance Checker (BETA)< Line 1202  Web Document Conformance Checker (BETA)<
1202    </d:desc>    </d:desc>
1203  </d:item>  </d:item>
1204    
1205    <d:item name="mismatched charset name" class="attribute-value-error"
1206        level="m">
1207      <d:message xml:lang="en">Character encoding name <code><var>$1</var></code>
1208      is different from document character encoding
1209      <code><var>$0</var></code>.</d:message>
1210      <d:desc xml:lang="en">
1211        <p>The specified character encoding name is different from
1212        the character encoding of the document.  The document
1213        is non‐conforming.</p>
1214      </d:desc>
1215    </d:item>
1216    
1217  <d:item name="reserved browsing context name"  <d:item name="reserved browsing context name"
1218      class="attribute-value-error">      class="attribute-value-error">
1219    <d:message xml:lang="en">Browsing context name    <d:message xml:lang="en">Browsing context name
# Line 1043  Web Document Conformance Checker (BETA)< Line 1287  Web Document Conformance Checker (BETA)<
1287      The document is non-conforming.</p>      The document is non-conforming.</p>
1288    
1289      <p>For example, the table below is non-conforming:      <p>For example, the table below is non-conforming:
1290        <pre class="html non-conforming example"><code>&lt;table>        <pre class="html bad example"><code>&lt;table>
1291  &lt;tbody>  &lt;tbody>
1292  &lt;tr>&lt;td rowspan=2>&lt;/td>&lt;/tr>  &lt;tr>&lt;td rowspan=2>&lt;/td>&lt;/tr>
1293  &lt;/tbody>  &lt;/tbody>
# Line 1210  Web Document Conformance Checker (BETA)< Line 1454  Web Document Conformance Checker (BETA)<
1454      <code>text/cache-manifest</code> must contain a cache manifest.</p>      <code>text/cache-manifest</code> must contain a cache manifest.</p>
1455    
1456      <p>A cache manifest must start with a line whose content is      <p>A cache manifest must start with a line whose content is
1457      <code>CACHE MANIFEST</code> (exactly one space character between      <code class="manifest example">CACHE MANIFEST</code>
1458        (exactly one space character between
1459      <code>CACHE</code> and <code>MANIFEST</code>).</p>      <code>CACHE</code> and <code>MANIFEST</code>).</p>
1460    </d:desc>    </d:desc>
1461  </d:item>  </d:item>
1462  </section>  </section>
1463    
1464    <section id="information">
1465    <h2>Stability Information</h2>
1466    
1467    <d:item name="status:cr:element" class="level-i" level="i">
1468      <d:message xml:lang="en">This element is in the
1469      <strong>call for implementation</strong> stage.</d:message>
1470      <d:desc xml:lang="en">
1471        <p>The element is in the call for implementation stage.</p>
1472        
1473        <p>Usually, using the element is safe.  However, it is a new feature
1474        so that it might not be implemented correctly.  If it is found that
1475        the feature is hard or impossible to implement, the feature
1476        might be revised, or in some case it might be dropped.</p>
1477    
1478        <p>Elements defined by Atom 1.0 (IETF Proposed Standard), and XBL 2.0
1479        (W3C Candidate Recommendation) belong to this class.</p>
1480      </d:desc>
1481    </d:item>
1482    
1483    <d:item name="status:lc:element" class="level-i" level="i">
1484      <d:message xml:lang="en">This element is in the <strong>last
1485      call for comments</strong> stage.</d:message>
1486      <d:desc xml:lang="en">
1487        <p>The element is in the last call for comments stage.</p>
1488        
1489        <p>The element is relatively mature, though the standardization
1490        is not done yet.  It may be used for experiments.  Since it is a new
1491        feature, it might not be implemented correctly or at all.  If it is
1492        found that the feature is hard or impossible to implement, the feature
1493        might be revised or might be dropped.</p>
1494    
1495        <p>Elements defined by Web Forms 2.0 as well as some elements
1496        defined by HTML5 belong to this class.</p>
1497      </d:desc>
1498    </d:item>
1499    
1500    <d:item name="status:wd:element" class="level-i" level="i">
1501      <d:message xml:lang="en">This element is documented in a <strong>working
1502      draft</strong>.</d:message>
1503      <d:desc xml:lang="en">
1504        <p>The element is documented in a working or editor's draft
1505        and not yet completed.</p>
1506        
1507        <p>The element should not be used for any practical purpose.
1508        The feature might be drastically changed later or might be
1509        entirely removed.</p>
1510    
1511        <p>Most of new elements defined by HTML5 belong to this class.</p>
1512      </d:desc>
1513    </d:item>
1514    
1515    <d:item name="status:non-standard:element" class="level-i" level="i">
1516      <d:message xml:lang="en">This element is <strong>not part of any
1517      standard</strong> the conformance checker knows.</d:message>
1518      <d:desc xml:lang="en">
1519        <p>The element is not part of any standard or draft the conformance
1520        checker is aware of.</p>
1521        
1522        <p>The element should not be used for any practical purpose unless
1523        there is really a standard that defines the element.</p>
1524      </d:desc>
1525    </d:item>
1526    </section>
1527    
1528  <section id="unsupported-messages">  <section id="unsupported-messages">
1529  <h2><i>Unsupported</i> Messages</h2>  <h2><i>Unsupported</i> Messages</h2>
1530    
# Line 1338  to solve a problem in a confusing or pos Line 1647  to solve a problem in a confusing or pos
1647  It does not affect to the conformance of the document, and  It does not affect to the conformance of the document, and
1648  may sometimes be inappropriate.</td>  may sometimes be inappropriate.</td>
1649  </tr>  </tr>
1650  <tr id="level-unsupported" class="level-unsupported">  <tr id="level-i" class="level-i">
1651    <th scope="row">Information</th>
1652    <td>Conforming.</td>
1653    <td>An informational message just provides an additional information
1654    on the feature used in the document or the status of the retrieval
1655    or so on.
1656    It does not affect to the conformance of the document.</td>
1657    </tr>
1658    <tr id="level-u" class="level-u">
1659  <th scope="row">Not supported</th>  <th scope="row">Not supported</th>
1660  <td><em>Unknown</em>.</td>  <td><em>Unknown</em>.</td>
1661  <td>Some feature that is not supported by the conformance checker  <td>Some feature that is not supported by the conformance checker
# Line 1351  is used in the document.</td> Line 1668  is used in the document.</td>
1668  <section id="license">  <section id="license">
1669  <h2>License of This Document</h2>  <h2>License of This Document</h2>
1670    
1671  <p>Copyright <time>2007</time>  <p>Copyright <time>2007</time>‐<time>2008</time>
1672  <a href="http://suika.fam.cx/~wakaba/who?" rel="author" xml:lang="ja">Wakaba</a>  <a href="http://suika.fam.cx/~wakaba/who?" rel="author" xml:lang="ja">Wakaba</a>
1673  <code class="mail">&lt;<a href="mailto:w@suika.fam.cx">w@suika.fam.cx</a>></code>.</p>  <code class="mail">&lt;<a href="mailto:w@suika.fam.cx">w@suika.fam.cx</a>></code>.</p>
1674    

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.23

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24