-
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
Why isn't the hr
element allowed to be used inside the optgroup
element as a separator?
#9247
Comments
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.
That's not a common UI paradigm as far as I know. |
This comment was marked as spam.
This comment was marked as spam.
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. |
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. |
|
Closing as per earlier comment. |
b9c5dee
The
hr
element is allowed to be used inside theselect
element as a separator.But the
hr
element isn't allowed to be used inside theoptgroup
element as a separator.Why?
The text was updated successfully, but these errors were encountered: