Bug 23994
| Summary: | Underline formatting bleeds into other formatting during delete/backspace | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Julie Parent <jparent> |
| Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | eric, justin.garcia |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | OS X 10.5 | ||
Julie Parent
Steps to reproduce:
1. Go to your favorite contentEditable based rich text editor (like http://www.mozilla.org/editor/midasdemo/)
2. Type "Foo Bar" on the first line (without quotes). Press Enter.
3. Type "Baz" on the second line. (html is Foo <span class="Apple-style-span" style="text-decoration: underline;">Bar</span><div>Baz</div>)
4. Double-click on "Bar" to highlight it.
5. Press underline from the toolbar.
6. Go to the beginning of the second line.
7. Press Backspace.
Result:
Everything moved from the second line to the first is underlined (html is Foo <span class="Apple-style-span" style="text-decoration: underline;">BarBaz</span>
Expected:
Just "Bar" to be underlined.
Notes:
I've repro'ed on Chrome 1.0 Windows and a webkit nightly on Mac. This also repros if you use delete at the end of the first line, rather than backspace at the beginning of the second line.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Justin Garcia
Looks like you filed this twice.
*** This bug has been marked as a duplicate of 23993 ***