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 12040 - missing Mhead> tag not accounted for
Summary: missing Mhead> tag not accounted for
Status: RESOLVED INVALID
Alias: None
Product: HTML Checker
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Michael[tm] Smith
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-11 19:34 UTC by Raymond
Modified: 2015-08-23 07:07 UTC (History)
0 users

See Also:


Attachments

Description Raymond 2011-02-11 19:34:53 UTC
The following code will validate as HTML5:

<!doctype html>
<html>

  <title>Test</title>
</head>
<body>
</body>
</html>


The head tag is missing its open tag but still has the close tag.
Comment 1 Michael[tm] Smith 2011-04-05 07:28:00 UTC
The text/html syntax of the HTML language has always permitted the head start tag to be omitted; see:

http://dev.w3.org/html5/markup/head.html#head-tags

In a conforming HTML5 parser, the head start tag is implied by the start tag for the title element, meaning that the parser essentially injects the head start tag into the DOM when it fines the title start tage