[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
Fri Jun 3 19:28:20 PDT 2011


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





--- Comment #6 from Ryosuke Niwa <rniwa at webkit.org>  2011-06-03 19:28:20 PST ---
(From update of attachment 96004)
View in context: https://bugs.webkit.org/attachment.cgi?id=96004&action=review

> Source/WebCore/editing/CompositeEditCommand.cpp:1250
> +        // If the position is at the end of the node, split at the next node.
> +        if ((p.containerNode()->isTextNode() && p.offsetInContainerNode() == (int)static_cast<Text*>(p.containerNode())->length())
> +            || (p.containerNode()->isElementNode() && p.offsetInContainerNode() == (int)splitNode->childNodes()->length()))
> +            splitNode = splitNode->nextSibling();

This logic is likely wrong as it doesn't take invisible nodes into account.

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