Skip to content

x/website: html end tag missing on golang.org/dl #33126

@tsaarni

Description

@tsaarni

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 which gopkg.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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions