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

HtmlTreeBuilderState.InHead missing in HtmlTreeBuilder.java? #1491

Closed
matjung opened this issue Feb 8, 2021 · 1 comment
Closed

HtmlTreeBuilderState.InHead missing in HtmlTreeBuilder.java? #1491

matjung opened this issue Feb 8, 2021 · 1 comment
Labels
bug Confirmed bug that we should fix fixed
Milestone

Comments

@matjung
Copy link

matjung commented Feb 8, 2021

jsoup-1.13.1.jar
jsoup-1.13.1-sources.jar
When parsing a html string I was having an issue with
Unexpected token [StartTag] when in state [InBody] 7
That made me visit the issues list and have a look into the code.
method void resetInsertionMode()
} else if ("head".equals(name)) { transition(HtmlTreeBuilderState.InBody); break; // frag
Should the state not be InHead ?

@jhy jhy added bug Confirmed bug that we should fix fixed labels Jul 11, 2021
@jhy jhy added this to the 1.14.2 milestone Jul 11, 2021
@jhy
Copy link
Owner

jhy commented Jul 11, 2021

Thanks, looks like the spec (https://html.spec.whatwg.org/multipage/parsing.html#the-insertion-mode) has been updated. Fixed.

@jhy jhy closed this as completed Jul 11, 2021
jhy added a commit that referenced this issue Jul 11, 2021
Fixes #1491

Need to add support for template tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug that we should fix fixed
Projects
None yet
Development

No branches or pull requests

2 participants