WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
15647
HEAD elements are not automatically generated in empty documents.
https://bugs.webkit.org/show_bug.cgi?id=15647
Summary
HEAD elements are not automatically generated in empty documents.
Kevin Decker
Reported
2007-10-23 17:05:50 PDT
HEAD elements are not automatically generated in empty documents. * STEPS TO REPRODUCE 1. Create an about:blank document. Notice there's an auto generated body element, but not head element. Having a auto generated head element matches behavior of other browsers and is important for a high profile email site.
Attachments
test 1
(301 bytes, text/html)
2007-10-26 11:10 PDT
,
Alexey Proskuryakov
no flags
Details
test 2
(758 bytes, text/html)
2007-10-26 11:11 PDT
,
Alexey Proskuryakov
no flags
Details
test 2
(780 bytes, text/html)
2007-10-26 11:13 PDT
,
Alexey Proskuryakov
no flags
Details
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2007-10-26 11:10:43 PDT
Created
attachment 16884
[details]
test 1
Alexey Proskuryakov
Comment 2
2007-10-26 11:11:01 PDT
Created
attachment 16885
[details]
test 2
Alexey Proskuryakov
Comment 3
2007-10-26 11:13:15 PDT
Created
attachment 16886
[details]
test 2 Updated to work in Safari, not just in Firefox...
Robert Blaut
Comment 4
2008-03-04 15:40:04 PST
The problem is clearly visible in Live DOM Viewer:
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E
Gecko and Presto generate the head element. Webkit in this case violates the HTML5 spec:
http://www.whatwg.org/specs/web-apps/current-work/#before5
Alexey Proskuryakov
Comment 5
2009-09-01 15:54:03 PDT
This was fixed in <
http://trac.webkit.org/changeset/43215
>. Test2 still fails, and this is because we don't create HTML and HEAD nodes immediately from document.write() - we create them when closing a document if they still don't exist. This is a difference with Firefox, but IE behaves the same.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug