<?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>20216</bug_id>
          
          <creation_ts>2008-07-29 14:51:26 -0700</creation_ts>
          <short_desc>execCommand RemoveFormat removes links</short_desc>
          <delta_ts>2010-10-25 17:09:38 -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>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>GoogleBug, NeedsReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>43017</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Deepak Jindal">jindal</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jparent</cc>
    
    <cc>justin.garcia</cc>
    
    <cc>rniwa</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87321</commentid>
    <comment_count>0</comment_count>
    <who name="Deepak Jindal">jindal</who>
    <bug_when>2008-07-29 14:51:26 -0700</bug_when>
    <thetext>RemoveFormat shouldn&apos;t remove anchor tags.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196362</commentid>
    <comment_count>1</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-03-04 22:38:45 -0800</bug_when>
    <thetext>It looks like in WebKit, &quot;removeformat&quot; means remove all tags (lists, tables, anchors, everything).  In Firefox and IE, it means remove text formatting, but keep structural formatting.

There&apos;s no equivalent command in TextEdit, so I&apos;m not sure what&apos;s supposed to happen.

Julie, should we try to mach Firefox and IE here?  There are plenty of test cases where the current behavior is expected (e.g., removing lists).

Here&apos;s a test case:
http://www.plexode.com/cgi-bin/eval3.py#ht=%3Cdiv%20id%3D%22e%22%20contenteditable%3E%3Cspan%20style%3D%22color%3Ared%22%3E%3Ca%20href%3D%22http%3A%2F%2Fwww.google.com%2F%22%3EHello%3C%2Fa%3E%20world%3C%2Fspan%3E%0A%3Cul%3E%0A%3Cli%3Eone%0A%3Cli%3Etwo%0A%3C%2Ful%3E%0A%3Cinput%3E%0A%3Ctextarea%3Ehi%3C%2Ftextarea%3E%0A%3Ctable%20border%3D1%3E%3Ctr%3E%3Ctd%3Efoo%3C%2Ftd%3E%3C%2Ftr%3E%3C%2Ftable%3E%0A%3C%2Fdiv%3E&amp;ohh=1&amp;ohj=1&amp;jt=document.execCommand(%22removeformat%22%2C%20false%2C%20null)&amp;ojh=0&amp;ojj=0&amp;ms=100&amp;oth=0&amp;otj=0&amp;cex=1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196363</commentid>
    <comment_count>2</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-03-04 22:40:13 -0800</bug_when>
    <thetext>See also:
https://bugs.webkit.org/show_bug.cgi?id=13125
https://bugs.webkit.org/show_bug.cgi?id=17926</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>299201</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2010-10-25 17:09:38 -0700</bug_when>
    <thetext>This bug has been fixed since http://trac.webkit.org/changeset/70283.  Since there are already regression tests for this bug, I close this bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>