<?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>13811</bug_id>
          
          <creation_ts>2011-08-17 20:47:41 +0000</creation_ts>
          <short_desc>Handle collapsed whitespace better</short_desc>
          <delta_ts>2011-09-21 20:46:16 +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>ehsan</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>55339</commentid>
    <comment_count>0</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-08-17 20:47:41 +0000</bug_when>
    <thetext>I need to test cases where we have spaces in between blocks, like what happens if you backspace with &quot;&lt;p&gt;foo&lt;/p&gt; &lt;p&gt;[]bar&lt;/p&gt;&quot;, or do insertOrderedList with &quot;&lt;ol&gt;&lt;li&gt;foo&lt;/ol&gt; &lt;p&gt;[]bar&lt;/p&gt;&quot;, things like that.  I suspect I don&apos;t handle it well in some places, although now that such whitespace is counted as invisible, deletion should hopefully handle it okay.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55341</commentid>
    <comment_count>1</comment_count>
    <who name="Ehsan Akhgari [:ehsan]">ehsan</who>
    <bug_when>2011-08-17 21:22:54 +0000</bug_when>
    <thetext>These are collapsed whitespaces, right?  I think their presence should not change anything.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55436</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-08-18 16:47:16 +0000</bug_when>
    <thetext>Well, they have to be treated specially in some cases.  E.g., if you do insertOrderedList with &quot;&lt;ol&gt;&lt;li&gt;foo&lt;/ol&gt; &lt;p&gt;[]bar&lt;/p&gt;&quot;, it should stick the space in the list too, so it becomes &quot;&lt;ol&gt;&lt;li&gt;foo&lt;/li&gt; &lt;li&gt;[]bar&lt;/ol&gt;&quot;.  Currently I&apos;m pretty sure it becomes &quot;&lt;ol&gt;&lt;li&gt;foo&lt;/ol&gt; &lt;ol&gt;&lt;li&gt;[]bar&lt;/ol&gt;&quot;, which is a bug.  I just need to add lots of tests like these and fix any brokenness in the results.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57090</commentid>
    <comment_count>3</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-21 18:39:35 +0000</bug_when>
    <thetext>I added some in the course of doing something else:

https://dvcs.w3.org/hg/editing/rev/b2d328d179ac
https://dvcs.w3.org/hg/editing/rev/4321a7e11603

I still need to add more, at least covering list toggling.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57107</commentid>
    <comment_count>4</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-21 20:46:16 +0000</bug_when>
    <thetext>I fixed a lot of this:

https://dvcs.w3.org/hg/editing/rev/ee2791b98b92

There are probably still bunches of lingering issues, though, which I&apos;ll have to work out over time as I think of them.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>