WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
98988
Setting the body element's outerHTML causes another <head> tag to be added to DOM
https://bugs.webkit.org/show_bug.cgi?id=98988
Summary
Setting the body element's outerHTML causes another <head> tag to be added to...
Brad Vogel
Reported
2012-10-10 21:02:56 PDT
Created
attachment 168137
[details]
test case UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/536.26.14 (KHTML, like Gecko) Version/6.0.1 Safari/536.26.14 Steps to reproduce the problem: 1. Run the attached test case. What is the expected behavior? The alert dialog shows "Number of head tags: 1" What went wrong? Instead, the alert dialog shows "Number of head tags: 4". Apparently setting the outerHTML of the body element will add extra <head> tags to the DOM.
Attachments
test case
(356 bytes, text/html)
2012-10-10 21:02 PDT
,
Brad Vogel
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Brad Vogel
Comment 1
2012-10-10 22:32:10 PDT
Chromium issue filed at
http://code.google.com/p/chromium/issues/detail?id=155008
.
Eric Seidel (no email)
Comment 2
2012-10-11 13:27:25 PDT
Awesome. :)
Eric Seidel (no email)
Comment 3
2012-10-11 13:29:02 PDT
FF shows the same, btw.
Adam Barth
Comment 4
2012-10-11 15:53:51 PDT
Sounds like we're doing what the spec asks. It's not that big a deal to end up with more than one <head> element. Please re-open this bug if this is causing a problem on a real web site.
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