Bug 20216 - execCommand RemoveFormat removes links
Summary: execCommand RemoveFormat removes links
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
Keywords: GoogleBug, NeedsReduction
Depends on: 43017
  Show dependency treegraph
Reported: 2008-07-29 14:51 PDT by Deepak Jindal
Modified: 2010-10-25 17:09 PDT (History)
4 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Deepak Jindal 2008-07-29 14:51:26 PDT
RemoveFormat shouldn't remove anchor tags.
Comment 1 Tony Chang 2010-03-04 22:38:45 PST
It looks like in WebKit, "removeformat" means remove all tags (lists, tables, anchors, everything).  In Firefox and IE, it means remove text formatting, but keep structural formatting.

There's no equivalent command in TextEdit, so I'm not sure what'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's a test case:
Comment 3 Ryosuke Niwa 2010-10-25 17:09:38 PDT
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.