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

[whatwg] document.head

From: Hallvord R M Steen <hallvors@gmail.com>
Date: Tue, 6 Oct 2009 15:14:13 +0100
Message-ID: <dd4c8a40910060714i7bb57ea1ke85cbcb3e8495aba@mail.gmail.com>
> 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

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