-
Notifications
You must be signed in to change notification settings - Fork 692
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
Generated HTML markup for Option Groups is invalid #740
Comments
Yup, only permitted content is |
Probably need a class for the option group ul and a first child selector to modify that first element. |
I'll work on a fix for this today. |
I looked at your commit... You may want to take a look at the following: For a nested list, it should be like... the group label is in the parent li's:
|
PR for this is merged. |
Reference https://validator.w3.org/#validate_by_input
The following models the way that anchor tags are used in the generated markup for option groups. However, this markup is flagged as invalid HTML by the HTML validator. (I suspected it would be.)
If the anchor can somehow be wrapped in a
<li>
, it is then valid... e.g. the following validates fine:The text was updated successfully, but these errors were encountered: