[Webkit-unassigned] [Bug 93583] New: Select/insertHTML at element boundaries inserts content in the wrong place
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 8 23:12:28 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=93583
Summary: Select/insertHTML at element boundaries inserts
content in the wrong place
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh Intel
OS/Version: Mac OS X 10.8
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML Editing
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: dgatwood at mac.com
1. Set document body to contentEditable.
2. Create a range and add it to the window selection.
3. range.setStartAfter(document.body.lastChild);
4. document.execCommand("insertHTML", false, "content to insert")
Notice that the content gets inserted *inside* the last element even though the insertion point is explicity *after* the last element. This can't be correct behavior. Firefox behaves as I would expect (inserting the data outside the last element).
Example attached.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list