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

x/pkgsite: multiple invalid HTML #70730

Open
3052 opened this issue Dec 8, 2024 · 17 comments
Open

x/pkgsite: multiple invalid HTML #70730

3052 opened this issue Dec 8, 2024 · 17 comments

Comments

@3052
Copy link

3052 commented Dec 8, 2024

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

@3052 3052 added the pkgsite label Dec 8, 2024
@gopherbot gopherbot added this to the Unreleased milestone Dec 8, 2024
@gabyhelp
Copy link

gabyhelp commented Dec 8, 2024

Related Issues

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

@findleyr
Copy link
Member

Thank you for your diligence. It looks like you have already done the hard work of finding and root causing these problems. Would you like to fix them? We would welcome a contribution fixing these errors.

@findleyr findleyr modified the milestones: Unreleased, pkgsite/backlog Dec 12, 2024
@3052
Copy link
Author

3052 commented Dec 12, 2024

I don't see that you're on the Go team...

@findleyr
Copy link
Member

findleyr commented Dec 12, 2024

@3052 I'm not sure what you mean, but I am on the Go team.

@ianlancetaylor
Copy link
Member

When I look at https://github.com/findleyr I see two organizations listed: Go and Googlers. @3052 Do you not see that? I wonder if there is some GitHub setting that hides it in some cases.

Screenshot from 2024-12-12 12-52-07

@jimmyfrasche
Copy link
Member

I only see Go listed and if I repopen the profile in a private window I see neither.

@ianlancetaylor
Copy link
Member

Huh, if I use a Chrome incognito window I don't see any organizations for @findleyr, and for myself I see only the SWIG organization. I just edited my visibility for the golang organization, which I did from the organization page, and now I see myself listed in that organization. So it seems to be up to each person, or each organization, whether to publicize their organization membership.

@3052
Copy link
Author

3052 commented Dec 12, 2024

WOW that is really annoying - I am a member of two as well - but both were private by default - so I just fixed myself

https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-membership-in-organizations/publicizing-or-hiding-organization-membership

@findleyr
Copy link
Member

Thanks, I did not know that! I've made my Go membership public now.

@FuenRob
Copy link

FuenRob commented Dec 20, 2024

Hello, can I make a contribution to solve this issue?

@Mahimachavalam009
Copy link

can i contribute?

@findleyr
Copy link
Member

Hi @FuenRob and @Mahimachavalam009 we would welcome fixes for these issues.

I think one CL will do, so @FuenRob since you asked first could you please confirm you will work on it? If not, no worries; @Mahimachavalam009 can contribute in that case.

@FuenRob
Copy link

FuenRob commented Dec 27, 2024

Yes @findleyr I want to contribute by solving this fix. Thanks.

Should I assign the issue?

@findleyr
Copy link
Member

@FuenRob I already assigned it to you :)

@FuenRob
Copy link

FuenRob commented Dec 28, 2024

Hi @findleyr

I've uploaded the changes via Gerrit. How can I link the change to this issue?

Here is the link to the change: https://go-review.googlesource.com/c/pkgsite/+/639075

Please, any problem or failure, do not hesitate to tell me to fix it.

@ianlancetaylor
Copy link
Member

@FuenRob In repo's other than the main go repo, you should write

Fixes golang/go#70730

See https://go.dev/wiki/CommitMessage.

@gopherbot
Copy link
Contributor

Change https://go.dev/cl/639075 mentions this issue: static/frontend: Fix misplaced span tags in header template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants