Text selection in details/summary tag opens/closes details tag
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox110 | --- | affected |
People
(Reporter: Gijs, Unassigned)
References
Details
(Keywords: testcase, Whiteboard: [domcore-bugbash-triaged])
STR:
- open https://jsbin.com/sehedijoga/edit?html,output
- try to select the text in the summary tag with the mouse
ER:
when letting go of the left mouse button, the state of the details/summary tag shouldn't change
AR:
the details/summary tag gets collapsed/expanded
Comment 1•3 years ago
|
||
Happens also in Chrome.
And the reason is https://html.spec.whatwg.org/#the-summary-element:activation-behaviour
So the question is what should happen to the click event in that case.
| Reporter | ||
Comment 2•3 years ago
|
||
(In reply to Olli Pettay [:smaug][bugs@pettay.fi] from comment #1)
Happens also in Chrome.
And the reason is https://html.spec.whatwg.org/#the-summary-element:activation-behaviourSo the question is what should happen to the click event in that case.
I mean I think that for this kind of behaviour "click" is semantically bogus, but given it's specced like this I bet that ship has sailed...
| Reporter | ||
Comment 3•3 years ago
|
||
So perhaps this should be closed as invalid? :-(
Comment 4•3 years ago
•
|
||
You could file a spec bug? I agree the behavior is odd. And if you file, link that there.
Otherwise this could be closed.
| Reporter | ||
Comment 5•3 years ago
|
||
I filed https://github.com/whatwg/html/issues/8707 per comment #4.
Updated•3 years ago
|
Updated•1 month ago
|
Description
•