[whatwg] document.head

> 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

..though less magic than I remembered - it only skips text nodes, not
comments.. And perhaps what happens is that the text node is put
inside body instead? I'd have to do some more testing to tell what
browsers actually do..

-- 
Hallvord R. M. Steen

Received on Tuesday, 6 October 2009 07:14:13 UTC