[Webkit-unassigned] [Bug 33247] New: Upwards cursor movement incorrect when previous block ends with <br>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 5 18:28:31 PST 2010


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

           Summary: Upwards cursor movement incorrect when previous block
                    ends with <br>
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jparent at google.com


Normally, if you press the up arrow, the cursor moves to somewhere close to
being right above where you were.  However, if the previous line is a block and
ends in a br, the cursor always goes to the end of the line instead.

See
http://www.plexode.com/cgi-bin/eval3.py#ht=%3Cdiv%20contentEditable%3E%3Cp%3Efirst%20line.%20blah%20blah%20blah.%20This%20ends%20in%20a%20br.%3Cbr%2F%3E%3C%2Fp%3E%3Cp%3Esecond%20line.%20Put%20your%20cursor%20here%20%5B%20%5D.%20Now%20hit%20up.%3C%2Fp%3E%3Cp%3EAnother%20line%20line.%20This%20does%20not%20have%20a%20br.%3C%2Fp%3E%3Cp%3Etry%20again%20from%20down%20here%20%5B%20%5D%20and%20hit%20up.%3C%2Fp%3E%3C%2Fdiv%3E&ohh=1&ohj=1&jt=&ojh=1&ojj=1&ms=100&oth=0&otj=0&cex=1
for an example.

This seems to happen whenever the <br> doesn't cause a linebreak - that is, if
the <p>'s in the example above are replaced with <spans>, this does not happen.

Seen in Safari 4.0.4 and Chrome 4.0.266.0.

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