This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 12593 - <command> Tag will not validate html5
Summary: <command> Tag will not validate html5
Status: RESOLVED WORKSFORME
Alias: None
Product: HTML Checker
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Michael[tm] Smith
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-04 03:22 UTC by trigon
Modified: 2015-08-23 07:07 UTC (History)
1 user (show)

See Also:


Attachments

Description trigon 2011-05-04 03:22:48 UTC
The new <command> will not validate html5.

Using this as an example http://www.w3schools.com/html5/tag_command.asp

error: Stray end tag command.
Comment 1 Michael[tm] Smith 2011-05-04 04:30:31 UTC
The command element is a void element (like the img element), so it's not allowed to have an end tag.

By the way, I suggest you don't w3schools as a source for information about HTML5. There are many errors in their content, and they don't fix the errors even after users report them.

For correct reference information on the command element, try 
http://dev.w3.org/html5/spec-author-view/interactive-elements.html#the-command or 
http://dev.w3.org/html5/markup/command.html or
Comment 2 Andrey 2011-10-27 05:57:14 UTC
 Why it not recognize end of img tag? With "/>" and just ">". Validator says one. And... Down in the document, and in other documents recognize... What is this?
Line 73, Column 208: Stray end tag img.