-
Notifications
You must be signed in to change notification settings - Fork 61
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
[techniques/authoring-html] Make the text in the <summary> elements not selectable? #123
Comments
As i said privately, since summary text is just ordinary text, like other elements in an HTML page, i disagree that it should be unselectable. Note that the summary text can be quite long, if desired. I think it's important to be able to select that text, autotranslate it, etc., just like any other text, including link and button text (which you also click on to trigger an action). |
I'm a bit curious - did you ever accidentally expand/collapse the section when selecting the text in the IMHO the situation for links is better, because it's unusual for me to click the link by accident when selecting text in a link, but when selecting (not clicking) text in a The text in a |
About
|
It looks like MDN's toggler does not have this problem. For example, see the toggler of the events on the left column of this page: https://developer.mozilla.org/en-US/docs/Web/Events It's still selectable, but you can't select/highlight the text accidentally by double/triple-clicking. It uses JavaScript, though: https://github.com/mozilla/kuma/blob/8f41629afbd1e0bd7146ba2164529d65e7cdda26/kuma/static/js/components.js#L314 Screenshot: |
@xfq What's different about links vs summary that makes one a problem and the other not? And could that difference be implemented in UAs, instead of making them unselectable? |
Assuming this is stale. If not, please reopen. |
Yeah, there's not much progress on this issue, so I decided to write an WebExtension instead of adding the behavior to the standards. |
https://w3c.github.io/i18n-drafts/techniques/authoring-html.en
When expanding/collapsing a section by clicking the section heading (i.e., the
<summary>
element), it's really easy for me to select the text in the heading accidentally when expanding and collapsing a section quickly (just for a quick short look at the section, for example), which is annoying.Personally, I'd really like to disable the selection of the
<summary>
element (for example, by usinguser-select: none;
).(I also filed issues in the Firefox and Chromium issue trackers, to see if it can become a part of the UA style sheets.)
The text was updated successfully, but these errors were encountered: