[Bug 14119] New: Strip collapsed whitespace on insertText

http://www.w3.org/Bugs/Public/show_bug.cgi?id=14119

           Summary: Strip collapsed whitespace on insertText
           Product: WebAppsWG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML Editing APIs
        AssignedTo: ayg@aryeh.name
        ReportedBy: ayg@aryeh.name
         QAContact: sideshowbarker+html-editing-api@gmail.com
                CC: mike@w3.org, public-webapps@w3.org


Mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=681626

In a case like "foo[] ", if you insert a space, it becomes "foo [] ". 
Thus the extra space is no longer collapsed.  It should be "foo []", same
as if you started with "foo[]".  Alternatively, it could be "foo [] ",
with the trailing space still present but ignored.  But it seems nicer to take
the opportunity to clean up.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Monday, 12 September 2011 20:11:29 UTC