Skip to content

x/pkgsite: multiple invalid HTML #70730

@3052

Description

@3052

What is the URL of the page with the issue?

view-source:https://pkg.go.dev/41.neocities.org/text

What is your user agent?

Firefox

Screenshot

invalid

What did you see happen?

first is the double close tag:

https://github.com/golang/pkgsite/blob/dc08416c8122836b0f06f5b3025699f37e3d53b9/static/shared/header/header.tmpl#L27-L50

then space is removed on both sides, leading to attributes with no separating space:

https://github.com/golang/pkgsite/blob/dc08416c8122836b0f06f5b3025699f37e3d53b9/static/frontend/unit/main/_meta.tmpl#L61-L69

and another example actually hard coded:

https://github.com/golang/pkgsite/blob/dc08416c8122836b0f06f5b3025699f37e3d53b9/static/shared/footer/footer.tmpl#L142

What did you expect to see?

valid HTML

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions