178 |
|
|
179 |
<div class="section" id="bad-attribute-value"><h3>Attribute value must be quoted by <code>"</code> |
<div class="section" id="bad-attribute-value"><h3>Attribute value must be quoted by <code>"</code> |
180 |
or <code>'</code> if it contains a <code>"</code>, <code>'</code>, or |
or <code>'</code> if it contains a <code>"</code>, <code>'</code>, or |
181 |
<code>=</code> character.</h3></div> |
<code>=</code> character.</h3> |
182 |
|
<p>In an unquoted attribute value, a character <code>"</code> |
183 |
|
(<code>U+0022</code> <code class="charname">QUOTATION MARK</code>), |
184 |
|
<code>'</code> (<code>U+0026</code> |
185 |
|
<code class="charname">APOSTROPHE</code>), or <code>=</code> |
186 |
|
(<code>U+003D</code> <code class="charname">EQUAL SIGN</code>) |
187 |
|
is contained. These characters are not allowed in unquoted attribute |
188 |
|
values, since they are used to quote attribute values or to separate |
189 |
|
attribute name and value.</p> |
190 |
|
|
191 |
|
<p>This error is also raised if one try to use empty attribute |
192 |
|
value like <code class="html bad example"><foo bar= baz=></code>; |
193 |
|
in this example, <code class="html bad example">baz=</code> is |
194 |
|
treated as an invalid attribute value for the attribute |
195 |
|
<code class="html bad example">bar</code>, not as another attribute.</p> |
196 |
|
</div> |
197 |
|
|
198 |
<div class="section" id="bare-ero"><h3>The <code>&</code> character must |
<div class="section" id="bare-ero"><h3>The <code>&</code> character must |
199 |
be escaped as <code class="html example">&amp;</code>.</h3> |
be escaped as <code class="html example">&amp;</code>.</h3> |
403 |
|
|
404 |
<div class="section" id="end-tag-attribute"><h3>End tag cannot have attributes.</h3></div> |
<div class="section" id="end-tag-attribute"><h3>End tag cannot have attributes.</h3></div> |
405 |
|
|
406 |
|
<div class="section" id="empty-unquoted-attribute-value"><h3>Attribute value is not specified.</h3> |
407 |
|
<p>The attribute value is not specified after the <code>=</code> |
408 |
|
(<code>U+003C</code> <code class="charname">EQUAL SIGN</code>) |
409 |
|
character.</p> |
410 |
|
|
411 |
|
<p>When an attribute value is empty, the <code>=</code> character after |
412 |
|
the attribute name must be specified as:</p> |
413 |
|
|
414 |
|
<p><code class="html example"><foo bar></code></p> |
415 |
|
|
416 |
|
<p>Instead, quotation marks can be used to explicitly represent that |
417 |
|
the attribute value is empty, as:</p> |
418 |
|
|
419 |
|
<p><code class="html example"><foo bar=""></code></p> |
420 |
|
|
421 |
|
<p>... or like:</p> |
422 |
|
|
423 |
|
<p><code class="html example"><foo bar=''></code></p> |
424 |
|
</div> |
425 |
|
|
426 |
<div class="section" id="invalid-character-reference"><h3>Character reference to |
<div class="section" id="invalid-character-reference"><h3>Character reference to |
427 |
<code><var>{text}</var></code> is not allowed.</h3></div> |
<code><var>{text}</var></code> is not allowed.</h3></div> |
428 |
|
|
1181 |
<div class="section" id="attribute-not-allowed:ismap"><h3>The <code>ismap</code> attribute may only be |
<div class="section" id="attribute-not-allowed:ismap"><h3>The <code>ismap</code> attribute may only be |
1182 |
used for the image contained in an <code>a</code> element.</h3></div> |
used for the image contained in an <code>a</code> element.</h3></div> |
1183 |
|
|
1184 |
<div class="section" id="attribute-not-defined"><h3>This attribute is not defined.</h3></div> |
<div class="section" id="attribute-not-defined"><h3>This attribute is not defined.</h3> |
1185 |
|
<p>The attribute is not one of attributes allowed for the element |
1186 |
|
in the latest version of relevant specifications.</p> |
1187 |
|
|
1188 |
<div class="section" id="in-HTML:xml:lang"><h3>The <code>xml:lang</code> attribute is not |
<p>The attribute cannot be used.</p> |
1189 |
allowed in HTML document.</h3> |
|
1190 |
<p>The <code>xml:lang</code> attribute is not allowed in |
<dl> |
1191 |
HTML document. The document is non-conforming.</p> |
<dt><code>autosubmit</code> attribute (<code>menu</code> element)</dt> |
1192 |
|
<dd>The attribute was part of HTML5 draft but then dropped. |
1193 |
|
Similar functionality can be implemented by scripts.</dd> |
1194 |
|
</dl> |
1195 |
|
</div> |
1196 |
|
|
1197 |
<p>Use of the <code>xml:lang</code> attribute is conforming |
<div class="section" id="in-HTML:xml:lang"><h3>The <code>xml:lang</code> attribute in HTML |
1198 |
<em>only</em> in XML documents.</p> |
document is ignored.</h3> |
1199 |
|
<p>The <code>xml:lang</code> attribute does not have an effect in |
1200 |
|
HTML document.</p> |
1201 |
|
|
1202 |
|
<p>The <code>xml:lang</code> attribute is only applicable to XML |
1203 |
|
documents. In HTML document, it is only allowed to ease migration |
1204 |
|
from XML.</p> |
1205 |
|
|
1206 |
<p>To specify natural language information in HTML document, |
<p>To specify natural language information in HTML document, |
1207 |
use <code>lang</code> attribute instead.</p> |
use <code>lang</code> attribute instead.</p> |
1229 |
</p> |
</p> |
1230 |
</div> |
</div> |
1231 |
|
|
|
<div class="section" id="in-XML:lang"><h3>The <code>lang</code> attribute is not |
|
|
allowed in XML document.</h3> |
|
|
<p>The HTML <code>lang</code> attribute is not allowed in |
|
|
XML document. The document is non-conforming.</p> |
|
|
|
|
|
<p>The <code>lang</code> attribute in <code>null</code> |
|
|
namespace for HTML elements is conforming <em>only</em> in |
|
|
HTML documents.</p> |
|
|
|
|
|
<p>To specify natural language information in XML document, |
|
|
use <code>xml:lang</code> attribute instead.</p> |
|
|
</div> |
|
|
|
|
1232 |
<div class="section" id="in-XML:noscript"><h3>A <code>noscript</code> element cannot be |
<div class="section" id="in-XML:noscript"><h3>A <code>noscript</code> element cannot be |
1233 |
used in XML document.</h3></div> |
used in XML document.</h3></div> |
1234 |
|
|
1235 |
|
<div class="section" id="in-XML:xml:lang"><h3>The <code>xml:lang</code> attribute in no namespace |
1236 |
|
is only allowed in HTML document.</h3></div> |
1237 |
|
|
1238 |
<div class="section" id="in-XML:xmlns"><h3>The <code>xmlns</code> attribute |
<div class="section" id="in-XML:xmlns"><h3>The <code>xmlns</code> attribute |
1239 |
in the <code>null</code> namespace is not allowed in |
in the <code>null</code> namespace is not allowed in |
1240 |
XHTML document. The document is non-conforming.</h3> |
XHTML document. The document is non-conforming.</h3> |
1245 |
static documents.</p> |
static documents.</p> |
1246 |
</div> |
</div> |
1247 |
|
|
1248 |
|
<div class="section" id="xml:lang-not-allowed"><h3>The <code>xml:lang</code> attribute is only allowed |
1249 |
|
when the <code>lang</code> attribute is specified.</h3></div> |
1250 |
|
|
1251 |
</section> |
</section> |
1252 |
|
|
1253 |
<section id="attribute-value-errors"> |
<section id="attribute-value-errors"> |
1380 |
|
|
1381 |
<div class="section" id="datetime:syntax-error"><h3>The attribute value is not a datetime.</h3></div> |
<div class="section" id="datetime:syntax-error"><h3>The attribute value is not a datetime.</h3></div> |
1382 |
|
|
1383 |
<div class="section" id="dateortime:syntax-error"><h3>The attribute value is not a date or |
<div class="section" id="dateortime:syntax-error"><h3>The value is not a date or time.</h3></div> |
|
time.</h3></div> |
|
1384 |
|
|
1385 |
<div class="section" id="enumerated:invalid"><h3>This attribute only allow a limited set of |
<div class="section" id="enumerated:invalid"><h3>This attribute only allow a limited set of |
1386 |
values and the specified value <code><var>{@}</var></code> is not one |
values and the specified value <code><var>{@}</var></code> is not one |
1590 |
<div class="section" id="XML-1.0-NCName:syntax-error"><h3>The specified value is not a legal XML Namespaces |
<div class="section" id="XML-1.0-NCName:syntax-error"><h3>The specified value is not a legal XML Namespaces |
1591 |
1.0 <code>NCName</code>.</h3></div> |
1.0 <code>NCName</code>.</h3></div> |
1592 |
|
|
1593 |
|
<div class="section" id="xml:lang-ne-lang"><h3>The value of the <code>xml:lang</code> attribute |
1594 |
|
is different from the value of the <code>lang</code> attribute.</h3> |
1595 |
|
<p>The value of the <code>xml:lang</code> attribute (either the |
1596 |
|
<code>lang</code> attribute in the <code>xml</code> (i.e. |
1597 |
|
<code>http://www.w3.org/XML/1998/namespace</code>) namespace, or |
1598 |
|
the <code>xml:lang</code> attribute in no namespace) for the element has |
1599 |
|
different value than that of the <code>lang</code> attribute in no |
1600 |
|
namespace.</p> |
1601 |
|
|
1602 |
|
<p>For historical reason, there are two attributes applicable to HTML |
1603 |
|
elements to specify language information of an element: <code>lang</code> |
1604 |
|
and <code>xml:lang</code>. In HTML documents, only <code>lang</code> |
1605 |
|
attribute in no namespace is allowed and take effect; the |
1606 |
|
<code>xml:lang</code> attribute in no namespace is ignored in HTML |
1607 |
|
documents. In XHTML documents, both <code>lang</code> and |
1608 |
|
<code>xml:lang</code> attributes are allowed.</p> |
1609 |
|
|
1610 |
|
<p>In general, <em>only the <code>lang</code> attribute</em> need to be |
1611 |
|
specified for an element.</p> |
1612 |
|
|
1613 |
|
<p>If both <code>lang</code> and <code>xml:lang</code> attributes are |
1614 |
|
specified on the same element, their values must be the same value.</p> |
1615 |
|
</div> |
1616 |
|
|
1617 |
</section> |
</section> |
1618 |
|
|
1619 |
<section id="table-model-errors"> |
<section id="table-model-errors"> |
1761 |
URI.</h3></div> |
URI.</h3></div> |
1762 |
|
|
1763 |
<div class="section" id="URL:address-format"><h3>URL host address format |
<div class="section" id="URL:address-format"><h3>URL host address format |
1764 |
<code><var>{value}</var></code> is not supported by the |
<code><var>{text}</var></code> is not defined.</h3></div> |
|
conformance checker.</h3></div> |
|
1765 |
|
|
1766 |
<div class="section" id="URL:default-port"><h3>Default port number should be omitted.</h3></div> |
<div class="section" id="URL:default-port"><h3>Default port number should be omitted.</h3></div> |
1767 |
|
|