| Summary: | Invalid assert in CompositeEditCommand::insertNodeAfter/insertNodeBefore | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | zalan <zalan> | ||||||||
| Component: | HTML Editing | Assignee: | zalan <zalan> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | commit-queue | ||||||||
| Priority: | P2 | ||||||||||
| Version: | 528+ (Nightly build) | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
zalan
2015-02-20 14:00:29 PST
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. |