[Webkit-unassigned] [Bug 61594] REGRESSION: Hitting enter in the middle of this span causes the cursor to go to the end of the span

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 1 17:57:22 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=61594





--- Comment #2 from Annie Sullivan <sullivan at chromium.org>  2011-06-01 17:57:22 PST ---
It looks like this regressed in ChangeSet 83247.

The original editing area contains <span>textnode1<br>textnode2</span>. Previously, a new div was created as a sibling to the span, a new span appended as a child of the new div, and the <br> and textnode2 were moved inside the new span. Now the div is created, but no new span is added and the <br> and textnode2 aren't moved.

Two things changed:

1. The calls to getAncestorsInsideBlock() on line 305 and cloneHierarchyUnderNewBlock() on line 340 were removed, which prevents the new span from being added into the new div.

2. The loop on lines 345-356 was changed so that n is set to the newly inserted div. Previously, it was set to the <br> after the cursor, so that the loop on lines 358-363 copied the <br> and the second text node to the new <div>. Now that loop does nothing.

-- 
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