<?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>20828</bug_id>
          
          <creation_ts>2008-09-13 06:25:50 -0700</creation_ts>
          <short_desc>The HTML editor replaces tags with its own spans selecting the entire element and typing.</short_desc>
          <delta_ts>2009-07-27 10:54:14 -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>525.x (Safari 3.1)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>23892</dup_id>
          
          <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>0</everconfirmed>
          <reporter name="Johan Bergström">hope.johan</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</assigned_to>
          <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>91034</commentid>
    <comment_count>0</comment_count>
    <who name="Johan Bergström">hope.johan</who>
    <bug_when>2008-09-13 06:25:50 -0700</bug_when>
    <thetext>When selecting the whole contents of an element that has an execCommand that creates the same style (e.g. &lt;i&gt; or &lt;em&gt; for the &apos;italic&apos; execCommand) and typing, the editor replaces that element with a span with the style equivalent for the element. For example &lt;i&gt; or &lt;em&gt; becomes &apos;font-style: italic&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91040</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-09-13 07:13:43 -0700</bug_when>
    <thetext>I believe that this is currently by design, see bug 13490.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91044</commentid>
    <comment_count>2</comment_count>
    <who name="Johan Bergström">hope.johan</who>
    <bug_when>2008-09-13 07:29:10 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; I believe that this is currently by design, see bug 13490.
&gt; 

The problem isn&apos;t so much that it inserts spans on the &apos;italic&apos; execCommand but more that it replaces any italicized (em, i) tag with spans. It shouldn&apos;t meddle with stuff it didn&apos;t put there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>134945</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2009-07-27 10:54:14 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 23892 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>