<?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>12198</bug_id>
          
          <creation_ts>2007-01-10 08:31:01 -0800</creation_ts>
          <short_desc>execcommand italic and bold commands should generate &lt;i&gt; and &lt;b&gt;</short_desc>
          <delta_ts>2007-04-25 12:37:05 -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>DOM</component>
          <version>420+</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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>0</everconfirmed>
          <reporter name="Anne van Kesteren">annevk</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35897</commentid>
    <comment_count>0</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2007-01-10 08:31:01 -0800</bug_when>
    <thetext>I heard that currently &quot;italic&quot; and &quot;bold&quot; generic something along the lines of:

  &lt;span style=&quot;font-style:italic&quot;&gt; ... &lt;/span&gt;

that&apos;s not really useful. Given that this is mostly used by WYSIWYG editors generating &lt;em&gt; and &lt;strong&gt; isn&apos;t particularly useful either (that&apos;s what IE does at the moment).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20571</commentid>
    <comment_count>1</comment_count>
    <who name="Dan POPA">dpopa</who>
    <bug_when>2007-03-05 01:38:45 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; I heard that currently &quot;italic&quot; and &quot;bold&quot; generic something along the lines
&gt; of:
&gt; 
&gt;   &lt;span style=&quot;font-style:italic&quot;&gt; ... &lt;/span&gt;
&gt; 
&gt; that&apos;s not really useful. Given that this is mostly used by WYSIWYG editors
&gt; generating &lt;em&gt; and &lt;strong&gt; isn&apos;t particularly useful either (that&apos;s what IE
&gt; does at the moment).
&gt; 
Consider implementing document.execCommand(&quot;styleWithCSS&quot;, false, bool) as in Gecko.
When bool is false, formatting commands should use tags instead of styled spans. Use B,I no STRONG,EM.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20572</commentid>
    <comment_count>2</comment_count>
    <who name="Dan POPA">dpopa</who>
    <bug_when>2007-03-05 01:48:49 -0800</bug_when>
    <thetext>OK, Use STRONG,EM not B,I .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12659</commentid>
    <comment_count>3</comment_count>
      <attachid>14175</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-04-25 06:26:20 -0700</bug_when>
    <thetext>Created attachment 14175
test case

Anne, this seems to work as expected in a current nightly: &lt;i&gt;&lt;b&gt;Test&lt;/b&gt;&lt;/i&gt;

I do not know if this has changed, or was always so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12469</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-04-25 12:37:05 -0700</bug_when>
    <thetext>I&apos;ve also tried r18386 (from December 2006), and it also added &lt;b&gt; and &lt;i&gt;. Closing as INVALID.

Going to file a separate bug for styleWithCSS.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>14175</attachid>
            <date>2007-04-25 06:26:20 -0700</date>
            <delta_ts>2007-04-25 06:26:20 -0700</delta_ts>
            <desc>test case</desc>
            <filename>italic.html</filename>
            <type>text/html</type>
            <size>211</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">PGRpdiBpZD0iZm9vIiBjb250ZW50ZWRpdGFibGU+VGVzdDwvZGl2Pgo8c2NyaXB0Pgpkb2N1bWVu
dC5nZXRFbGVtZW50QnlJZCgiZm9vIikuZm9jdXMoKTsKZG9jdW1lbnQuZXhlY0NvbW1hbmQoIml0
YWxpYyIpOwpkb2N1bWVudC5leGVjQ29tbWFuZCgiYm9sZCIpOwphbGVydChkb2N1bWVudC5nZXRF
bGVtZW50QnlJZCgiZm9vIikuaW5uZXJIVE1MKTsKPC9zY3JpcHQ+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>