It appears that some sites use document.documentElement.firstChild and expect it to be the head element even if there was whitespace before the <head> tag. Safari seems to drop whitespace before the <head> tag. Firefox seems to insert any whitespace before the <head> tag in the head element, even if it was also before the <html> tag or before the doctype, and it also does so with comments. IE seems to drop whitespace and put comments before the <html> tag as siblings to the root element and after as children of the head element. Opera currently does what HTML5 says, and it has caused some compat problems. -- Simon Pieters Opera SoftwareReceived on Wednesday, 14 November 2007 18:00:15 UTC
This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:23 UTC