1 This test checks whether one (and only one) HEAD element is created for various HTML documents. See Bug 7321 REGRESSION: style tag in body causes two head elements to appear in the DOM.
3 PASS successfullyParsed is true
6 Testing: head-check-1.html
7 PASS iframe.contentWindow.document.getElementsByTagName('head').length is 1
8 PASS iframe.contentWindow.document.firstChild.firstChild.nodeName.toLowerCase() is 'head'
10 Testing: head-check-2.html
11 PASS iframe.contentWindow.document.getElementsByTagName('head').length is 1
12 PASS iframe.contentWindow.document.firstChild.firstChild.nodeName.toLowerCase() is 'head'
14 Testing: head-check-3.html
15 PASS iframe.contentWindow.document.getElementsByTagName('head').length is 1
16 PASS iframe.contentWindow.document.firstChild.firstChild.nodeName.toLowerCase() is 'head'
18 Testing: head-check-4.html
19 PASS iframe.contentWindow.document.getElementsByTagName('head').length is 1
20 PASS iframe.contentWindow.document.firstChild.firstChild.nodeName.toLowerCase() is 'head'