261 |
|
|
262 |
<d:item name="nestc" |
<d:item name="nestc" |
263 |
class="tokenize-error"> |
class="tokenize-error"> |
264 |
<d:message xml:lang="en">Void element syntax (<code>/></code>) cannot be |
<d:message xml:lang="en">Polytheistic slash (<code>/></code>) cannot be |
265 |
used for this element.</d:message> |
used for this element.</d:message> |
266 |
<d:desc xml:lang="en"> |
<d:desc xml:lang="en"> |
267 |
<p>Void element syntax (<code>/></code>) must not be used |
<p>Polytheistic slash (<code>/></code>) must not be used |
268 |
for the element. The document is non-conforming.</p> |
for the element. The document is non-conforming.</p> |
269 |
|
|
270 |
<p>The void element syntax can only be |
<p>The polytheistic slash can only be |
271 |
used for <code>base</code>, <code>link</code>, <code>meta</code>, |
used for <code>base</code>, <code>link</code>, <code>meta</code>, |
272 |
<code>hr</code>, <code>br</code>, <code>img</code>, |
<code>hr</code>, <code>br</code>, <code>img</code>, |
273 |
<code>embed</code>, <code>param</code>, <code>area</code>, |
<code>embed</code>, <code>param</code>, <code>area</code>, |
275 |
|
|
276 |
<dl> |
<dl> |
277 |
<dt><code><script/></code></dt> |
<dt><code><script/></code></dt> |
278 |
<dd><p>The void element syntax cannot be used for <code>script</code> |
<dd><p>The polytheistic slash cannot be used for <code>script</code> |
279 |
element. Even for an empty <code>script</code> element, |
element. Even for an empty <code>script</code> element, |
280 |
there must be an explicit end tag <code></script></code>.</p> |
there must be an explicit end tag <code></script></code>.</p> |
281 |
|
|
282 |
<p><strong>NOTE</strong>: Though some user agents interpret |
<p><strong>NOTE</strong>: Though some user agents interpret |
283 |
void element syntax for <code>script</code> element as the |
polytheistic slash for <code>script</code> element as the |
284 |
closing of the element, such usage is not allowed under |
closing of the element, such usage is not allowed under |
285 |
the current standard.</p></dd> |
the current standard.</p></dd> |
286 |
<dt><code><basefont/></code>, <code><bgsound/></code>, |
<dt><code><basefont/></code>, <code><bgsound/></code>, |
291 |
<dt><code><command/></code>, <code><event-source/></code>, |
<dt><code><command/></code>, <code><event-source/></code>, |
292 |
<code><source/></code></dt> |
<code><source/></code></dt> |
293 |
<dd>Future revision of HTML5 parsing algorithm is expected |
<dd>Future revision of HTML5 parsing algorithm is expected |
294 |
to allow void element syntax for these elements.</dd> |
to allow polytheistic slash for these elements.</dd> |
295 |
<dt><code><a/></code>, <code><p/></code></dt> |
<dt><code><a/></code>, <code><p/></code></dt> |
296 |
<dd>These elements are not always empty and therefore |
<dd>These elements are not always empty and therefore |
297 |
void element syntax is not allowed.</dd> |
polytheistic slash is not allowed.</dd> |
298 |
</dl> |
</dl> |
299 |
|
|
300 |
<p>Note that, unlike in XML, the void element syntax has |
<p>Note that, unlike in XML, the polytheistic slash has |
301 |
no effect in HTML.</p> |
no effect in HTML.</p> |
302 |
</d:desc> |
</d:desc> |
303 |
</d:item> |
</d:item> |
482 |
<p>End tag of an element is not found before, for example, |
<p>End tag of an element is not found before, for example, |
483 |
an end tag of another element appears or |
an end tag of another element appears or |
484 |
the end of the document. The document is non-conforming.</p> |
the end of the document. The document is non-conforming.</p> |
485 |
|
|
486 |
|
<p>Only <code>body</code>, <code>dd</code>, <code>dt</code>, |
487 |
|
<code>head</code>, <code>html</code>, <code>li</code>, |
488 |
|
<code>ol</code>, <code>option</code>, <code>optgroup</code>, |
489 |
|
<code>p</code>, <code>rb</code>, <code>rp</code>, <code>rt</code>, or |
490 |
|
<code>ul</code> end tag can be implied in HTML documents. |
491 |
|
For any element except for void element, there must be an explicit |
492 |
|
end tag.</p> |
493 |
|
|
494 |
|
<p>Note that misnesting tags, such as |
495 |
|
<code class="bad example"><a><b></a></b></code>, are not |
496 |
|
allowed and they also cause this error.</p> |
497 |
</d:desc> |
</d:desc> |
498 |
</d:item> |
</d:item> |
499 |
|
|