Can't type space in <summary> with contenteditable
Categories
(Core :: DOM: Editor, defect)
Tracking
()
People
(Reporter: kozackunisoft, Unassigned)
References
(Regression)
Details
(Keywords: regression)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0
Steps to reproduce:
Open html markup:
<details>
<summary><span contenteditable="true">Try to type space</span></summary>
</details>
Try entering space chapter in the <summary>
text
Actual results:
Pressing spacebar triggers <details>
toggle (expected) but space chapter doesn't entered (not expected)
Expected results:
Pressing spacebar triggers <details>
toggle and enter space chapter
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Editor' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
![]() |
||
Comment 2•2 years ago
|
||
Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=0671d3ac5672614bc516cf42968f605ff4a97ba1&tochange=d76885757ec1127bdeaceddca62b1739493c24f2
Comment 3•2 years ago
|
||
Same root cause as bug 1822860 (<button>
and <details>
share activation behavior). This is pre-existing (you can test it with the enter key).
I don't think it's expected that pressing space would toggle and insert the character, but I'd expect the character to be inserted first (and toggling not happening).
Description
•