<?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>43447</bug_id>
          
          <creation_ts>2010-08-03 15:00:11 -0700</creation_ts>
          <short_desc>Outdent moves text before other text</short_desc>
          <delta_ts>2022-11-22 02:32:28 -0800</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>PC</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Julie Parent">jparent</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>ayg</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>259710</commentid>
    <comment_count>0</comment_count>
    <who name="Julie Parent">jparent</who>
    <bug_when>2010-08-03 15:00:11 -0700</bug_when>
    <thetext>Repro steps:
1. Start with the following HTML inside an editable region:
&lt;blockquote&gt;one&amp;nbsp;&lt;font color=&quot;#FF0000&quot; id=&apos;font&apos;&gt;two&lt;br&gt;three&lt;/font&gt;&lt;/blockquote&gt;
2. Select &quot;three&quot;
3. execCommand(&apos;outdent&apos;)

Result:
&quot;three&quot; moves BEFORE &quot;one two&quot; and &quot;e two&quot; is selected.  HTML is:
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0); &quot;&gt;three&lt;/span&gt;&lt;br&gt;&lt;blockquote&gt;one&amp;nbsp;&lt;font color=&quot;#FF0000&quot; id=&quot;font&quot;&gt;two&lt;br&gt;&lt;/font&gt;&lt;/blockquote&gt;

Expected Result:
&quot;three&quot; stays after &quot;one two&quot;, &quot;three&quot; remains selected, &quot;three&quot; is no longer indented

Demo here (click eval js to execute the select and execCommand): http://plexode.com/eval3/#ht=%3Cdiv%20contentEditable%3E%0A%3Cblockquote%3Eone%26nbsp%3B%3Cfont%20color%3D%22%23FF0000%22%20id%3D&apos;font&apos;%3Etwo%3Cbr%3Ethree%3C%2Ffont%3E%3C%2Fblockquote%3E%0A%3C%2Fdiv%3E&amp;ohh=1&amp;ohj=1&amp;jt=document.getSelection().setBaseAndExtent(font.lastChild%2C%200%2C%20font.lastChild%2C%20font.lastChild.length)%3B%0Adocument.execCommand(&apos;outdent&apos;%2C%20false%2C%20null)%3B%0A&amp;ojh=0&amp;ojj=0&amp;ms=100&amp;oth=0&amp;otj=0&amp;cex=1

Discovered in Google Sites.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>453306</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-08-18 13:25:17 -0700</bug_when>
    <thetext>More minimal test case:

  &lt;blockquote&gt;&lt;span&gt;foo&lt;br&gt;[bar]&lt;/span&gt;&lt;/blockquote&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1914024</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-11-22 02:32:16 -0800</bug_when>
    <thetext>Using test case from Comment 01, I am not able to reproduce this bug but using plexode from Comment 0, these are results:

*** Chrome Canary 110 &amp; Safari 16.1 / STP 158 ***

One
Three (RED)
TWO (RED)

*** Firefox Nightly 109 ***

One TWO (RED)
Three (RED)

___

Just wanted to share updated results. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>