W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2012

[whatwg] title/meta elements outside of <head>

From: Michael Day <mikeday@yeslogic.com>
Date: Thu, 19 Jan 2012 17:30:28 +1100
Message-ID: <4F17B884.8030009@yeslogic.com>

Currently the spec seems to indicate that title and meta elements found 
in the body will stay where they are and not be added to the head.

However, if these elements occur after the head and before the body then 
they will be added to the head.

Is this intentional?

Sample document #1:

<title>This will stay in the body</title>

Sample document #2:

<title>This will be moved to the head</title>

Sample document #3:

<title>Now we are in the body, where this will stay</title>

What is the reason why title/meta elements are not always moved to the 
head, regardless of where they appear?

Best regards,


Print XML with Prince!
Received on Wednesday, 18 January 2012 22:30:28 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:39 UTC