[Webkit-unassigned] [Bug 23474] In a designMode document, the cursor can't be moved after the last BR node if there is no text following it

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 27 06:51:51 PDT 2010


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


Ojan Vafai <ojan at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |enrica at apple.com,
                   |                            |morrita at google.com,
                   |                            |rolandsteiner at chromium.org,
                   |                            |tony at chromium.org




--- Comment #2 from Ojan Vafai <ojan at chromium.org>  2010-05-27 06:51:51 PST ---
To be clear, in that test case:
1. Put the cursor after Foo.
2. Hit enter.

A BR gets inserted, but the cursor doesn't move down. I'm not sure how fixable this is. The problem is that the line after the BR is not rendered because that's just how HTML rendering works. I don't think we could add a contentEditable quirk to render that line because it would break other cases. 

IE actually renders the new line in this case, so it doesn't have this problem.

Weirdly, Firefox does let you put the cursor there, but it doesn't render the line and it's in this sort of half-line position. Not sure if that's more or less broken.

Is it not enough of a workaround for codemirror to always ensure there's an extra BR at the end of the contentEditable element?

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