Currently, it's not possible to type space characters inside an element with the `contenteditable` attribute when it's inside a button. Steps to reproduce: 1. Load this HTML in Firefox: `<button><div contenteditable>Helloworld!</div></button>`. 2. Position the caret between `Hello` and `world`. 3. Type 'Space' in your keyboard. Expected result: the space is added and the button text is now `Hello world!`. That's also how Google Chrome and GNOME Web behave. Actual result: the space is not added and the button text is still `Helloworld!`.
Bug 1822860 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Currently, it's not possible to type space characters inside an element with the `contenteditable` attribute when it's inside a button. Steps to reproduce: 1. Load this HTML in Firefox: `<button><div contenteditable>Helloworld!</div></button>`. 2. Position the caret between `Hello` and `world`. 3. Type 'Space' in your keyboard. Expected result: the space is added and the button text is now `Hello world!`. That's also how Google Chrome and GNOME Web behave. Actual result: the space is not added and the button text is still `Helloworld!`. Tested with Firefox 110.0 and 113.0a1 (2023-03-15) on Fedora Linux.