[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
Mon Nov 8 15:57:39 PST 2010


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





--- Comment #11 from Ryosuke Niwa <rniwa at webkit.org>  2010-11-08 15:57:39 PST ---
(In reply to comment #10)
> However, no other browser hides this trailing BR, and it'd require weird, webkit-specific code to drop it from the document 'as the user sees it', which, in CodeMirror, is not just the saving/exporting of the content, but also iterating over the lines, keeping an undo history (I recently had to fix two bug related to this magic BR and the undo history) and several other pieces of functionality.

Firefox does hide BR.

> In short, it's your rendering engine, so you have the last word, but you're really making things difficult for client code with this behaviour.

How about execCommand('InsertLineBreak')?  It does the right thing.

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