Bug 53524
| Summary: | Delete does nothing on the line after a display:block image | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Justin Garcia <justin.garcia> |
| Component: | HTML Editing | Assignee: | Yi Shen <max.hong.shen> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ahmad.saleem792, max.hong.shen, rniwa, wenson_hsieh |
| Priority: | P2 | Keywords: | InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | OS X 10.5 | ||
Justin Garcia
Open:
<div contentEditable="true"><img src="https://encrypted.google.com/images/logos/ssl_logo_lg.gif" style="display:block;">hello</div>
place the caret before "hello" and press delete.
Nothing happens.
<rdar://problem/8162920>
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
*** Safari Technology Preview 192 ***
Placing caret before 'Hello' and pressing 'Delete' (nothing happens)
*** Chrome Canary 125 ***
Same as Safari.
*** Firefox Nightly 126 ***
Same as Safari & Chrome.
____
All browsers are behaving same.
____
JSFiddle - https://jsfiddle.net/qu25v1r9/
___
Although if I tweak steps slightly:
Place caret before 'Hello' and then do 'left arrow' to push the caret to end of image (at least in Safari / Chrome) and press 'Delete'.
**** Safari Technology Preview 192 ***
Image get deleted but 'Hello' remains in second line and caret in first.
*** Chrome Canary 125 ***
Image get deleted but 'Hello' becomes first line and caret is at start of 'Hello'.
*** Firefox Nightly 126 ***
Put caret in between 'Hello' and 'Image and don't let me put it at end of Image.
____