Opened 12 years ago
Closed 12 years ago
#9909 closed Bug (duplicate)
Webkit restores different deleted inline element
Reported by: | Piotrek Koszuliński | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
- Open inlinebycode sample.
- Open Elements tab in Dev toolbar and find editable.
- Delete editor's content, write 3 letters and bold them.
- Inspector shows that
<strong>
element was created. - Place caret at the end and press delete key 3 times to delete all letters (3 times!).
- See in the inspector that
<strong>
has been removed. - Type few letters.
- See that they are automatically bold.
- See that they are wrapped in
<b>
element.
Based on: http://stackoverflow.com/questions/14145970/chrome-empty-contenteditable-retaining-styling
So this is not the worst case. Answer on SO shows that Chrome also inlines style. Both cases won't be fixed by our htmlDataProcessor.toData().
I was able to reproduce this on inline and framed editors.
We may need custom delete behaviour to fix this. Or force Webkit to eventually fix this senseless behaviour.
Change History (2)
comment:1 Changed 12 years ago by
Status: | new → confirmed |
---|
comment:2 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | confirmed → closed |
Reporting a reduced TC to WebKit is the very first thing to be done.