blob: c3471c6a65a3cee33b4656c268acf8ac8301f54e [file] [log] [blame]
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.
PASS successfullyParsed is true
TEST COMPLETE
Testing: head-check-1.html
PASS iframe.contentWindow.document.getElementsByTagName('head').length is 1
PASS iframe.contentWindow.document.firstChild.firstChild.nodeName.toLowerCase() is 'head'
Testing: head-check-2.html
PASS iframe.contentWindow.document.getElementsByTagName('head').length is 1
PASS iframe.contentWindow.document.firstChild.firstChild.nodeName.toLowerCase() is 'head'
Testing: head-check-3.html
PASS iframe.contentWindow.document.getElementsByTagName('head').length is 1
PASS iframe.contentWindow.document.firstChild.firstChild.nodeName.toLowerCase() is 'head'
Testing: head-check-4.html
PASS iframe.contentWindow.document.getElementsByTagName('head').length is 1
PASS iframe.contentWindow.document.firstChild.firstChild.nodeName.toLowerCase() is 'head'
TEST COMPLETE