[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 19:22:31 PDT 2011


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





--- Comment #3 from Ryosuke Niwa <rniwa at webkit.org>  2011-06-01 19:22:31 PST ---
This is a bug in splitTreeToNode.  In the following DOM tree, splitTreeToNode doesn't split span because it thinks we're splitting the tree at the beginning of the first text node.

BODY    0x116a3f370
*    #text    0x116a3f660 "\n    "
    SPAN    0x116a3f6c0
        #text    0x116a3f890 "Hit Enter after this line"
        BR    0x116a3f970
        #text    0x116a3fb70 "See the cursor appear at the end of this line"
    #text    0x116a3fc50 "\n\n"
    DIV    0x113408bf0

We'd have to modify splitTreeToNode to take a Position instead to handle this case in general.

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