[Webkit-unassigned] [Bug 20288] editable span with empty text gets optimized away

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 21 13:18:18 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=20288

Ahmad Saleem <zlip.792 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zlip.792 at gmail.com

--- Comment #2 from Ahmad Saleem <zlip.792 at gmail.com> ---
I changed the test case from Comment 01 into following JSFiddle:

Link - https://jsfiddle.net/mec6rb79/show

I noticed following behavior:

**Safari 15.5 on macOS 12.4:

1) Allows you to edit and caret shows at right place and you can type anything - not just "non-whitespace text" as mentioned in Comment 01.

2) But as soon as you do "backspace" to remove text and as soon as you remove last character, the caret jumps to opposite side like it is RTL language.

**Chrome Canary 105:

1) Allows you to edit and caret shows at right place and you can type anything - not just "non-whitespace text" as mentioned in Comment 01.

2) But as soon as you do "backspace" to remove text and as soon as you remove last character, the caret disappear.

**Firefox Nightly 103:

It just simply does not allow you to edit at all.

Since all browser have different behavior. I am not sure, what is expected behavior and ideally, which one should Safari follow. Appreciate if someone can look into it. Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220621/560ce9df/attachment.htm>


More information about the webkit-unassigned mailing list