W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

[Bug 14119] New: Strip collapsed whitespace on insertText

From: <bugzilla@jessica.w3.org>
Date: Mon, 12 Sep 2011 20:11:26 +0000
To: public-webapps@w3.org
Message-ID: <bug-14119-2927@http.www.w3.org/Bugs/Public/>

           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 []&nbsp;". 
Thus the extra space is no longer collapsed.  It should be "foo&nbsp;[]", same
as if you started with "foo[]".  Alternatively, it could be "foo&nbsp;[] ",
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:23 UTC