<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>14119</bug_id>
          
          <creation_ts>2011-09-12 20:11:25 +0000</creation_ts>
          <short_desc>Strip collapsed whitespace on insertText</short_desc>
          <delta_ts>2012-11-15 22:02:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - HTML Editing APIs</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aryeh Gregor">ayg</reporter>
          <assigned_to name="Aryeh Gregor">ayg</assigned_to>
          <cc>cooper</cc>
    
    <cc>lwatson</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact name="HTML Editing APIs spec bugbot">sideshowbarker+html-editing-api</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>56674</commentid>
    <comment_count>0</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-12 20:11:25 +0000</bug_when>
    <thetext>Mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=681626

In a case like &quot;foo[] &quot;, if you insert a space, it becomes &quot;foo []&amp;nbsp;&quot;.  Thus the extra space is no longer collapsed.  It should be &quot;foo&amp;nbsp;[]&quot;, same as if you started with &quot;foo[]&quot;.  Alternatively, it could be &quot;foo&amp;nbsp;[] &quot;, with the trailing space still present but ignored.  But it seems nicer to take the opportunity to clean up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57183</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-22 20:12:33 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/editing/rev/89fed05c54e0
https://dvcs.w3.org/hg/editing/rev/e60077322f8a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57188</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-22 21:29:13 +0000</bug_when>
    <thetext>More tests:

https://dvcs.w3.org/hg/editing/rev/b94bc4cceb61</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78364</commentid>
    <comment_count>3</comment_count>
    <who name="Léonie Watson">lwatson</who>
    <bug_when>2012-11-15 17:37:19 +0000</bug_when>
    <thetext>Comment via Rich Schwerdtfeger:

This text exists in the canvas element specification: 
&quot;When authors use the canvas element, they must also provide content that, when presented to the user, conveys essentially the same function or purpose as the bitmap canvas. This content may be placed as content of the canvas element. The contents of the canvas element, if any, are the element&apos;s fallback content.&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>