-
Notifications
You must be signed in to change notification settings - Fork 17.4k
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
x/net/html: ParseFragment fails to parse sub-table elements in the root position #7232
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Comments
It is working as intended, since it parses it just as it would if the fragment were enclosed between <body> and </body>. But it does surprise people. A ParseFragment-like function that does not take a context, and tries to return the parse tree that a user is likely to expect, would be nice. It would probably require adding a new insertion mode to the parser, though, so it wouldn't be trivial. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
by algorithmicimperative:
The text was updated successfully, but these errors were encountered: