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)
Created attachment 122563 [details] Patch
*** Bug 76145 has been marked as a duplicate of this bug. ***
Created attachment 122568 [details] [Patch] Same with ability to set document's outer html.
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.
Committed r105058: <http://trac.webkit.org/changeset/105058>