[w3c/editing] Contenteditable re-creating deleted children when it shouldn't (Issue #468)

In Chromium (possibly others), when deleting an inline element inside an contenteditable ement such as a `<b>` or a `<span>` and then typing a letter, the inline element gets recreated. This behavior is highly annoying for JavaScript editor creators. JavaScript devs have asked time and time for contenteditable to please stop trying to be "smart"and changing the dom in starneg ways.

A bug has been filed before [1], but it was marked as "won't fix" due to some wording in the (unreleased) execCommand document.

This issue is now also causing additional issues [2].

My proposal: Change the execCommand draft document removing any language that may make browser developers think that such behavior is wanted [3], Chromium should reopen the bug [1] and make Chromium be compliant with the Input Events spec. 

[1] https://bugs.chromium.org/p/chromium/issues/detail?id=506858&no_tracker_redirect=1

[2]  https://github.com/w3c/input-events/issues/158 

[3] https://w3c.github.io/contentEditable/#replacing_text

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/468
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/editing/issues/468@github.com>

Received on Monday, 16 September 2024 15:52:38 UTC