ASSERT(!refChild->hasTagName(bodyTag)); should be allowed
Created attachment 247002 [details] Patch
Comment on attachment 247002 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=247002&action=review > Source/WebCore/ChangeLog:8 > + Inserting content before/after the body as the result of editing is a valid operation. I think we should elaborate that while we don't want to move nodes out of body element, we can't check that condition with these assertions. > LayoutTests/editing/inserting/insert-as-body-sibling.html:1 > +<head> Missing DOCTYPE. > LayoutTests/editing/inserting/insert-as-body-sibling.html:13 > + if (window.testRunner) > + testRunner.dumpAsText(); > + > + var iframe = document.createElement("iframe"); > + document.head.parentNode.insertBefore(iframe, document.head.nextSibling); > + document.execCommand("SelectAll"); > + document.designMode = "on"; > + document.execCommand("JustifyCenter", false, null); Please indent by 4 spaces, not 2 spaces.
Created attachment 247003 [details] Patch
Created attachment 247004 [details] Patch
(In reply to comment #2) > Comment on attachment 247002 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=247002&action=review > > > Source/WebCore/ChangeLog:8 > > + Inserting content before/after the body as the result of editing is a valid operation. > > I think we should elaborate that while we don't want to move nodes out of > body element, we can't check that condition with these assertions. > > > LayoutTests/editing/inserting/insert-as-body-sibling.html:1 > > +<head> > > Missing DOCTYPE. > > > LayoutTests/editing/inserting/insert-as-body-sibling.html:13 > > + if (window.testRunner) > > + testRunner.dumpAsText(); > > + > > + var iframe = document.createElement("iframe"); > > + document.head.parentNode.insertBefore(iframe, document.head.nextSibling); > > + document.execCommand("SelectAll"); > > + document.designMode = "on"; > > + document.execCommand("JustifyCenter", false, null); > > Please indent by 4 spaces, not 2 spaces. Done. Thanks.
Comment on attachment 247004 [details] Patch Clearing flags on attachment: 247004 Committed r180464: <http://trac.webkit.org/changeset/180464>
All reviewed patches have been landed. Closing bug.