We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Download https://golang.org/dl/ and parse it with gopkg.in/xmlpath.v1.ParseHTML.
gopkg.in/xmlpath.v1.ParseHTML
Parsing should succeed.
Error XML syntax error on line 11670: unexpected EOF
XML syntax error on line 11670: unexpected EOF
The reason seems to be that the web page does not have </html> end tag which gopkg.in/xmlpath.v1.ParseHTML is expecting.
</html>
This breaks godeb tool, see issue niemeyer/godeb#44. Workaround is to update parser to gopkg.in/xmlpath.v2.ParseHTML which is more forgiving.
gopkg.in/xmlpath.v2.ParseHTML
The text was updated successfully, but these errors were encountered:
Thanks for the issue.
HTML5 does not require all tags be closed. The <html> tag falls into that category.
<html>
There is a JSON API that should be used instead of parsing the HTML (which is brittle and prone to change). https://golang.org/dl/?mode=json[&include=all]
Closing since no change is needed on our side (please use the JSON API or a parser that is more compatible with HTML5).
Sorry, something went wrong.
No branches or pull requests
What did you do?
Download https://golang.org/dl/ and parse it with
gopkg.in/xmlpath.v1.ParseHTML
.What did you expect to see?
Parsing should succeed.
What did you see instead?
Error
XML syntax error on line 11670: unexpected EOF
The reason seems to be that the web page does not have
</html>
end tag whichgopkg.in/xmlpath.v1.ParseHTML
is expecting.This breaks godeb tool, see issue niemeyer/godeb#44. Workaround is to update parser to
gopkg.in/xmlpath.v2.ParseHTML
which is more forgiving.The text was updated successfully, but these errors were encountered: