W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2009

[whatwg] document.head

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 12 Oct 2009 01:11:07 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0910120110460.25383@hixie.dreamhostps.com>
On Tue, 6 Oct 2009, Hallvord R M Steen wrote:
> 
> You might think so. However, as Michael stated above Opera used to do 
> this, and it broke a number of websites that expected 
> documentElement.firstChild to be <HEAD> no matter what the actual markup 
> looked like. So we had to implement a somewhat magic firstChild on 
> documentElement and I expect other browsers had to too (as your testing 
> seems to confirm, more or less). Which reminds me, this peculiarity 
> should possibly be documented in HTML5 :-) .

As far as I can tell, the parser covers this. There's no need for more 
magic.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Sunday, 11 October 2009 18:11:07 UTC

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