[Webkit-unassigned] [Bug 25321] RLE/LRE characters are removed from any text entered into a text box (either using a keyboard or by pasting)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 30 17:21:42 PDT 2010


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


Xiaomei Ji <xji at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Typing in an element that   |RLE/LRE characters are
                   |contains only a RLE         |removed from any text
                   |character removes the RLE   |entered into a text box
                   |                            |(either using a keyboard or
                   |                            |by pasting)




--- Comment #6 from Xiaomei Ji <xji at chromium.org>  2010-07-30 17:21:42 PST ---
When typing, looks like the RLE character is treated as insignificant character and removed.

Inside InsertTextCommand::input(), there is the following line:

deleteInsignificantText(startPosition.upstream(), startPosition.downstream());

When RLE is the previously entered character, startPosition.upstream() will return the position before RLE while downstream() returns the position after RLE, and what is in between (the RLE character) is removed inside the function,
no matter whether RLE is the first character in the element or not.

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