W3C home > Mailing lists > Public > public-html@w3.org > August 2007

Re: document.title (detailed review of the DOM)

From: Simon Pieters <simonp@opera.com>
Date: Tue, 21 Aug 2007 16:14:58 +0200
To: public-html <public-html@w3.org>
Message-ID: <op.txexu8djidj3kv@hp-a0a83fcd39d2>

On Wed, 11 Jul 2007 12:06:20 +0200, Simon Pieters <simonp@opera.com> wrote:

[...]

> If we want to be more like IE, then I'd suggest the following spec text:
>
>     The head element of a document is the first head element that doesn't
>     have a body [or frameset] element ancestor.
>
>     The title element of a document is the first title element that  
> doesn't
>     have a body [or frameset] element ancestor.

However, IE moves title elements found in body to head in the HTML parser.  
HTML5 says to do this as well, currently. But if we want to change the  
parser to not move title elements to head [1], then the definition might  
instead need to be:

    The title element of a document is the first title element.

...because some pages might well have <title> tags in body and expect them  
to work as titles. If we do this, "the head element" doesn't seem to be  
needed at all.

> [...]

[1]  
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2007-July/012172.html
-- 
Simon Pieters
Opera Software
Received on Tuesday, 21 August 2007 14:15:17 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:48 UTC