<?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>13976</bug_id>
          
          <creation_ts>2011-08-30 20:42:37 +0000</creation_ts>
          <short_desc>Backspacing in between two lists should merge them</short_desc>
          <delta_ts>2011-11-08 16:27:39 +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>
          <dependson>13973</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aryeh Gregor">ayg</reporter>
          <assigned_to name="Aryeh Gregor">ayg</assigned_to>
          <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>56073</commentid>
    <comment_count>0</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-08-30 20:42:37 +0000</bug_when>
    <thetext>Based on WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=35281

Tests for delete command:

    &apos;&lt;ol&gt;&lt;li&gt;foo&lt;/li&gt;&lt;/ol&gt;{}&lt;br&gt;&lt;ol&gt;&lt;li&gt;bar&lt;/li&gt;&lt;/ol&gt;&apos;,
    &apos;&lt;ol id=a&gt;&lt;li&gt;foo&lt;/li&gt;&lt;/ol&gt;{}&lt;br&gt;&lt;ol&gt;&lt;li&gt;bar&lt;/li&gt;&lt;/ol&gt;&apos;,
    &apos;&lt;ol&gt;&lt;li&gt;foo&lt;/li&gt;&lt;/ol&gt;{}&lt;br&gt;&lt;ol id=b&gt;&lt;li&gt;bar&lt;/li&gt;&lt;/ol&gt;&apos;,
    &apos;&lt;ol id=a&gt;&lt;li&gt;foo&lt;/li&gt;&lt;/ol&gt;{}&lt;br&gt;&lt;ol id=b&gt;&lt;li&gt;bar&lt;/li&gt;&lt;/ol&gt;&apos;,
    &apos;&lt;ol class=a&gt;&lt;li&gt;foo&lt;/li&gt;&lt;/ol&gt;{}&lt;br&gt;&lt;ol class=b&gt;&lt;li&gt;bar&lt;/li&gt;&lt;/ol&gt;&apos;,
    &apos;&lt;ol&gt;&lt;ol&gt;&lt;li&gt;foo&lt;/ol&gt;&lt;li&gt;{}&lt;br&gt;&lt;ol&gt;&lt;li&gt;bar&lt;/ol&gt;&lt;/ol&gt;&apos;,
    &apos;&lt;ol&gt;&lt;ol&gt;&lt;li&gt;foo&lt;/ol&gt;&lt;li&gt;{}&lt;br&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;bar&lt;/ol&gt;&lt;/ol&gt;&apos;,

None of these merge the lists.  Also, the second-to-last doesn&apos;t normalize sublists -- delete code is evidently broken entirely for non-normalized nested lists (sigh).

Not going to try this until I refactor!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56074</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-08-30 20:43:23 +0000</bug_when>
    <thetext>Tests added: http://aryeh.name/gitweb.cgi?p=editing;a=commitdiff;h=929993fe</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59743</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-11-08 16:27:39 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/editing/rev/b3afc97ff16e

I added a whole bunch more tests than the ones from comment 0.  See bug 14727 for the sublist normalization issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>