Bug 20828
| Summary: | The HTML editor replaces tags with its own spans selecting the entire element and typing. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Johan Bergström <hope.johan> |
| Component: | HTML Editing | Assignee: | Ryosuke Niwa <rniwa> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | rniwa |
| Priority: | P2 | ||
| Version: | 525.x (Safari 3.1) | ||
| Hardware: | PC | ||
| OS: | All | ||
Johan Bergström
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'.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
I believe that this is currently by design, see bug 13490.
Johan Bergström
(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.
Ryosuke Niwa
*** This bug has been marked as a duplicate of bug 23892 ***