Bug 106110
| Summary: | Deleting all content in a contentEditable section, followed by typing again places computed style CSS in a span tag | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Thomas Jones <tomprogramming> |
| Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
| Status: | UNCONFIRMED | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| URL: | http://jsfiddle.net/tomprogramming/wS4Gp/9/ | ||
Thomas Jones
In the linked jsfiddle on chrome 23 and safari 5.1.7, if you delete all the text in the orange section, then start typing again, the text appears to be styled the same, but rather than having a <span> with the appropriate class, it has the computed style that makes up that class.
Expected Behavior:
The span that was there to begin with should remain, or a clone of it that has the same classes and attributes.
Actual Behavior:
Computed style is used, rendering explicit styles surrounding the text, making the use of a rich text editor that allows for custom formatting a bit difficult to parse (if it's looking for the classes that were originally there).
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |