-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
multiple optgroups without closing tags are incorrectly formatted as html #1313
Comments
Thanks, fixed! |
This was referenced Feb 9, 2020
This was referenced Mar 20, 2020
This was referenced Mar 28, 2020
This was referenced Apr 6, 2020
This was referenced Apr 17, 2020
This was referenced Apr 25, 2020
This was referenced May 5, 2020
This was referenced Jun 2, 2020
This was referenced Jun 11, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given a select element like:
The jsoup parser does not close the 'a' optgroup when it encounters the 'b' optgroup element like is done in web browsers. This results in the 'b' optgroup element being contained within the 'a' optgroup element instead of the select element.
The https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inselect stage should first pop the option node from the stack (as it is current node), then pop the optgroup element (as that then becomes the current node).
The text was updated successfully, but these errors were encountered: