NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 1021 - My document is valid eventhough it's missing </head> before <body>
My document is valid eventhough it's missing </head> before <body>
Status: RESOLVED INTENTIONAL
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 normal
Assigned To: Nobody
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-02-19 20:00 CET by Selim Achour
Modified: 2015-02-23 01:06 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Selim Achour 2015-02-19 20:00:27 CET
Here's the html source that validates


-------------------------------------------------
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

    <script src="/assets/eef26edb/jquery.js"></script>
<title>MakeMusic! - MakeMusic</title>
    
    
    <link rel="stylesheet" type="text/css" href="/css/main.css?3">
    <link rel="stylesheet" type="text/css" href="/css/print.css" media="print">
    <!--[if lt IE 8]>
    <link rel="stylesheet" type="text/css" href="/css/ie.css" media="screen, projection">
    <![endif]-->

<body>

<div id="Wrap">

    <header>
        <div id="logo"><img style="width:278px;height:50px;opacity:0.6" src="/images/logo.png" alt="MakeMusic Logo" /></div>
    </header>

    <nav id="mainmenu">
        <ul id="yw0">
<li class="active"><a href="/site/index">Home</a></li>
<li><a href="/site/#">Make Music</a>
<ul>
<li><a href="/category">Le Matos</a></li>
<li><a href="/brand">Les Marques</a></li>
</ul>
</li>
<li><a href="/live">Les Lives</a></li>
<li><a href="/site/#">Communauté</a>
<ul>
<li><a href="/musiciens">Musiciens</a></li>
<li><a href="/groupes">Groupes</a></li>
<li><a href="/techniciens-son">Techniciens</a></li>
<li><a href="/conservatoires">Conservatoires</a></li>
<li><a href="/place">Places</a></li>
</ul>
</li>
</ul>    </nav>

    
    <div id="Center">
                                    
<article>
    <h1>Welcome to <i>MakeMusic!</i></h1>

    <p>Ce site est en cours de construction ...</p>
    <br><br>
    <p>En attendant, vous pouvez parcourir la <a href="/community/index">Base de Donnée de la communauté Tunisienne de Musique</a></p>

</article>
        <div class="clear"></div>
    </div>
    
    <footer>
        Copyright &copy; 2015 by MakeMusic.
        All Rights Reserved.
        Powered by <a href="http://www.yiiframework.com/" rel="external">Yii Framework</a>.        follow us on <a style="color: rgb(69, 69, 255)" href="https://www.facebook.com/MakeMusic.tn" target="_blank">facebook</a>
    </footer>

</div>

<script src="/js/main.js?4"></script>

</body>
</html>
Comment 1 Michael[tm] Smith 2015-02-23 01:06:03 CET
Hi, thanks for taking time to report this but the validator is actually behaving as expected here, and in conformance with the HTML spec. The end tag for the head element is not required.

The https://html.spec.whatwg.org/multipage/semantics.html#the-head-element section of the spec says that the end tag for the head element can be omitted. So the source you posted in the description of this bug is in fact valid.