<?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>44359</bug_id>
          
          <creation_ts>2010-08-20 14:40:24 -0700</creation_ts>
          <short_desc>MakeTextWritingDirection* leaves extraneous spans</short_desc>
          <delta_ts>2022-12-17 22:04:02 -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>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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>43989</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>mitz</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>267422</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2010-08-20 14:40:24 -0700</bug_when>
    <thetext>MakeTextWritingDirectionLeftToRight on &lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world webkit rocks&lt;/span&gt;&lt;/span&gt;

Expected result:
&lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;unicode-bidi: embed;&quot;&gt; webkit&lt;/span&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt; rocks&lt;/span&gt;&lt;/span&gt;

Actual result:
&lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span style=&quot;unicode-bidi: embed;&quot;&gt; webkit&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt; rocks&lt;/span&gt;&lt;/span&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920305</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-12-17 17:18:12 -0800</bug_when>
    <thetext>@rniwa - Do we have test case for this by any chance or it is still an issue or not? Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920319</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2022-12-17 22:04:02 -0800</bug_when>
    <thetext>The test case is in the description. You need to run testRunner.execCommand(&apos;MakeTextWritingDirectionLeftToRight&apos;) on &lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world webkit rocks&lt;/span&gt;&lt;/span&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>