-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selecting text in the <summary> tag activates the details/summary (opens/closes the details tag) #8707
Comments
Compare with https://software.hixie.ch/utilities/js/live-dom-viewer/saved/11178 |
I suppose so - I would posit that it's user-hostile to prevent text selection just because the text is in a IMO it all boils down to detecting user intent around the two interaction possibilities of selection vs. clicking/activating. This ticket is complaining about what happens when the intent is selection and the activation is an unwanted side effect, #3191 complains about the inverse. I think having a spec change to more clearly delineate the two interactions would be better than just disabling one of the interactions altogether, even if that would indeed also resolve the ambiguity around user intent. |
Maybe this should be defined in https://w3c.github.io/uievents/#event-flow-activation |
cc @garykac |
FWIW, I probably do agree with #8707 (comment) that we should continue allowing selection, but we need to ensure that various user actions only cause one result rather than two... and make sure that it's the expected result. |
I filed https://bugs.chromium.org/p/chromium/issues/detail?id=1469699 on fixing this in Chromium. |
I'm sure this is the same issue but thought I'd point it out since the behavior is different in Firefox If there's an Screen.Recording.2023-08-21.at.11.56.03.mov |
Filed after https://bugzilla.mozilla.org/show_bug.cgi?id=1809494 was found to be a spec issue.
STR:
Expected:
when letting go of the left mouse button, the state of the details/summary tag shouldn't change
Actual:
the details/summary tag gets collapsed/expanded
The results are the same in Gecko and Blink. @smaug---- pointed out this is a result of the toggling being connected to the activation behaviour of details/summary which specify this, and the fact that a click event is still generated in the case described in the STR.
I think this is not user-friendly, and should be changed. If I was newer to the web platform I'd suggest that the click event shouldn't fire in this case. However, I expect that changing that may not be web-compatible, so I'd settle for fixing the details/summary behaviour, at least.
The text was updated successfully, but these errors were encountered: