RESOLVED FIXED 62272
Web Inspector: editing body multiplies head
https://bugs.webkit.org/show_bug.cgi?id=62272
Summary Web Inspector: editing body multiplies head
Andrey Kosyakov
Reported 2011-06-08 03:49:04 PDT
1. Navigate to data:text/html,<div> 2. Open inspector, switch to Elements panel 3. Select <body>, then choose "Edit as HTML" from the context menu 4. Press ctrl+enter to commit the changes 5. Observe two <head>s in the document (repeating these actions further yields more heads)
Attachments
Patch (15.67 KB, patch)
2012-01-15 02:40 PST, Pavel Feldman
no flags
[Patch] Same with ability to set document's outer html. (16.52 KB, patch)
2012-01-15 10:11 PST, Pavel Feldman
yurys: review+
Pavel Feldman
Comment 1 2012-01-15 02:40:11 PST
Pavel Feldman
Comment 2 2012-01-15 02:43:03 PST
*** Bug 76145 has been marked as a duplicate of this bug. ***
Pavel Feldman
Comment 3 2012-01-15 10:11:09 PST
Created attachment 122568 [details] [Patch] Same with ability to set document's outer html.
Yury Semikhatsky
Comment 4 2012-01-16 05:13:19 PST
Comment on attachment 122568 [details] [Patch] Same with ability to set document's outer html. View in context: https://bugs.webkit.org/attachment.cgi?id=122568&action=review > Source/WebCore/inspector/DOMEditor.h:46 > class HTMLElement; Remove this as well. > LayoutTests/inspector/elements/set-outer-html-body.html:52 > + // User console.log for output since body has been overwritten. Remove this comment? > LayoutTests/inspector/elements/set-outer-html-body.html:68 > +Tests DOMAgent.setOuterHTML invoked on body tag. Missing bug link.
Pavel Feldman
Comment 5 2012-01-16 05:35:24 PST
Note You need to log in before you can comment on or make changes to this bug.