Open Bug 1809494 Opened 3 years ago Updated 1 month ago

Text selection in details/summary tag opens/closes details tag

Categories

(Core :: DOM: Core & HTML, defect)

Desktop
All
defect

Tracking

()

Tracking Status
firefox110 --- affected

People

(Reporter: Gijs, Unassigned)

References

Details

(Keywords: testcase, Whiteboard: [domcore-bugbash-triaged])

STR:

  1. open https://jsbin.com/sehedijoga/edit?html,output
  2. 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

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.

(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-behaviour

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

So perhaps this should be closed as invalid? :-(

Flags: needinfo?(smaug)

You could file a spec bug? I agree the behavior is odd. And if you file, link that there.
Otherwise this could be closed.

Flags: needinfo?(smaug)
Severity: -- → S3
Whiteboard: [domcore-bugbash-triaged]
You need to log in before you can comment on or make changes to this bug.