Closed Bug 1824686 Opened 2 years ago Closed 2 years ago

Can't type space in <summary> with contenteditable

Categories

(Core :: DOM: Editor, defect)

Firefox 112
defect

Tracking

()

RESOLVED DUPLICATE of bug 1822860

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

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.

Component: Untriaged → DOM: Editor
Product: Firefox → Core

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).

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1822860
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.