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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>24249</bug_id>
          
          <creation_ts>2009-02-27 13:47:54 -0800</creation_ts>
          <short_desc>execCommand(&quot;outdent&quot;) on a list containing a table duplicates the content</short_desc>
          <delta_ts>2025-03-09 07:39:02 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Ahmad Saleem">ahmad.saleem792</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>jparent</cc>
    
    <cc>justin.garcia</cc>
    
    <cc>ojan</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>111541</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-02-27 13:47:54 -0800</bug_when>
    <thetext>execCommand(&quot;outdent&quot;) on a list containing a table duplicates the content

1. See attached test case.
2.  Weep, softly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111542</commentid>
    <comment_count>1</comment_count>
      <attachid>28102</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-02-27 13:48:11 -0800</bug_when>
    <thetext>Created attachment 28102
test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111557</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-02-27 15:01:45 -0800</bug_when>
    <thetext>Still reproduces in Safari 4 (I filed this bug from Safari 3, eek!)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2039212</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-05-31 19:20:13 -0700</bug_when>
    <thetext>Fixed in Blink commit - https://chromium.googlesource.com/chromium/blink/+/0cd4b3864db4fc9c0abfeeee0775c5fcbbca0184</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2039213</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-05-31 19:20:23 -0700</bug_when>
    <thetext>&lt;rdar://problem/129093516&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2039218</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-05-31 20:07:49 -0700</bug_when>
    <thetext>This compiles and make us match Chrome Canary 127 and Firefox Nightly 128:

// We should clone all the children of the list item for indenting purposes. However, in case the current
    // selection does not encompass all its children, we need to explicitally handle the same. The original
    // list item too would require proper deletion in that case.
    if (end.anchorNode() == selectedListItem.get() || end.anchorNode()-&gt;isDescendantOf(selectedListItem-&gt;lastChild()))
        moveParagraphWithClones(start, end, newList.get(), selectedListItem.get());
    else {
        moveParagraphWithClones(start, positionAfterNode(selectedListItem-&gt;lastChild()), newList.get(), selectedListItem.get());
        removeNode(*selectedListItem);
    }

Here - https://searchfox.org/wubkat/rev/427a310bda2e15e3014e59ff411c56c9da485c4c/Source/WebCore/editing/IndentOutdentCommand.cpp#84</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2101746</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-03-09 07:39:02 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/30111</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>28102</attachid>
            <date>2009-02-27 13:48:11 -0800</date>
            <delta_ts>2009-02-27 13:48:11 -0800</delta_ts>
            <desc>test case</desc>
            <filename>outdent.html</filename>
            <type>text/html</type>
            <size>497</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">PGRpdj5leGVjQ29tbWFuZCgib3V0ZGVudCIpIG9uIGEgbGlzdCBpdGVtIGNvbnRhaW5pbmcgYSB0
YWJsZSBkdXBsaWNhdGVzIHRoZSBsaXN0IGl0ZW0gY29udGVudCwgYnV0IGRvZXMgbm90IGNvcnJl
Y3RseSBvdXRkZW50IHRoZSBsaXN0ITwvZGl2Pgo8ZGl2PllvdSBzaG91bGQgb25seSBzZWUgImEi
IGZvbGxvd2VkIGJ5IGEgc2luZ2xlIGNlbGwgdGFibGUgYmVsb3c8L2Rpdj4KCjxkaXYgY29udGVu
dEVkaXRhYmxlPjxvbD48bGkgaWQ9Imxpc3RpdGVtIj5hPHRhYmxlIGJvcmRlcj0iMSIgY2VsbHBh
ZGRpbmc9IjIiIGNlbGxzcGFjaW5nPSIyIj48dGJvZHk+PHRyPjx0ZD48YnI+PC90ZD48L3RyPjwv
dGJvZHk+PC90YWJsZT48L2xpPjwvb2w+PC9kaXY+CjxzY3JpcHQ+CndpbmRvdy5nZXRTZWxlY3Rp
b24oKS5jb2xsYXBzZShkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgibGlzdGl0ZW0iKSwgMCk7CmRv
Y3VtZW50LmV4ZWNDb21tYW5kKCJvdXRkZW50Iik7Cjwvc2NyaXB0Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>