Bug 20828 - The HTML editor replaces tags with its own spans selecting the entire element and typing.
Summary: The HTML editor replaces tags with its own spans selecting the entire element...
Status: RESOLVED DUPLICATE of bug 23892
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 525.x (Safari 3.1)
Hardware: PC All
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-13 06:25 PDT by Johan Bergström
Modified: 2009-07-27 10:54 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Bergström 2008-09-13 06:25:50 PDT
When selecting the whole contents of an element that has an execCommand that creates the same style (e.g. <i> or <em> for the 'italic' execCommand) and typing, the editor replaces that element with a span with the style equivalent for the element. For example <i> or <em> becomes 'font-style: italic'.
Comment 1 Alexey Proskuryakov 2008-09-13 07:13:43 PDT
I believe that this is currently by design, see bug 13490.
Comment 2 Johan Bergström 2008-09-13 07:29:10 PDT
(In reply to comment #1)
> I believe that this is currently by design, see bug 13490.
> 

The problem isn't so much that it inserts spans on the 'italic' execCommand but more that it replaces any italicized (em, i) tag with spans. It shouldn't meddle with stuff it didn't put there.
Comment 3 Ryosuke Niwa 2009-07-27 10:54:14 PDT

*** This bug has been marked as a duplicate of bug 23892 ***