Open Bug 332739 Opened 19 years ago Updated 4 years ago

Editing operations should be based on default grapheme clusters

Categories

(Core :: DOM: Editor, defect, P5)

defect

Tracking

()

People

(Reporter: dbaron, Unassigned)

References

Details

Editing operations, such as character movement, selection, backspace, and delete, should be based on grapheme clusters rather than unicode characters.  (This is slightly questionable for backspace, a little less questionable for delete, pretty clear for character movement and selection.  In my opinion, at least.)

See attachment 213727 [details] on bug 329069 for an example document with text that can be pasted into a plaintext or HTML editor -- note that the document contains both composed and decomposed characters, and IMO these should behave the same in the editor.  If needed, I could give a long list of possible steps to reproduce for various editing operations, but I don't think it's worth going into detail at this point.

I think part of the reason it would be good to do this is that:
 * variation between composed and decomposed unicode normalizations shouldn't be exposed to the user
 * variation between characters that have the composed forms in unicode and those that require decomposed forms shouldn't be exposed to the user
but I also think the current behavior (character-by-character editing operations) is quite odd.
Duplicate of bug 283415 / bug 283416 (or vice versa)?
See also
http://groups.google.com/group/mozilla.dev.i18n/browse_frm/thread/22df76d267d4d630/

Yeah, probably is at least mostly duplicate, although I haven't read those bugs in detail.
QA Contact: editor
Assignee: mozeditor → nobody

Bulk-downgrade of unassigned, >=3 years untouched DOM/Storage bug's priority.

If you have reason to believe this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.