Skip to content
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

Why isn't the hr element allowed to be used inside the optgroup element as a separator? #9247

Closed
mtrootyy opened this issue May 2, 2023 · 6 comments

Comments

@mtrootyy
Copy link

mtrootyy commented May 2, 2023

b9c5dee

The hr element is allowed to be used inside the select element as a separator.
But the hr element isn't allowed to be used inside the optgroup element as a separator.
Why?

mtrootyy referenced this issue May 2, 2023
This is a long-standing WebKit feature that regressed as part of the standardized HTML parser effort. This suggests bringing it back with optional semantics, but a mandatory HTML parser change.

The HTML parser change is not expected to be significant for existing content or XSS. When the feature is correctly used it will also not hurt HTML parsers that have not yet incorporated the change. I.e., it should be fully backwards compatible.

Tests: html5lib/html5lib-tests#167.

Fixes #3410.
@annevk
Copy link
Member

annevk commented May 3, 2023

That's not a common UI paradigm as far as I know.

@RIYASANVI7

This comment was marked as spam.

@annevk
Copy link
Member

annevk commented Jun 14, 2023

We don't assign issues. This is also not something we've decided we want to fix. I'm actually inclined to close unless there's a compelling case made.

@jp-larose
Copy link

That's not a common UI paradigm as far as I know.

It's not used in HTML because it's not supported. If it was supported it might get used. I suspect the OP wants to add it to the standard so that it gets supported.

In desktop apps, horizontal bars get used to separate subgroups of menu items. Here's an example where they are used in the main listing of a menu as well as in a submenu in PyCharm.

image

@annevk
Copy link
Member

annevk commented Aug 29, 2023

optgroup is not a submenu though.

@annevk
Copy link
Member

annevk commented Oct 8, 2024

Closing as per earlier comment.

@annevk annevk closed this as not planned Won't fix, can't repro, duplicate, stale Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants