Skip to content

[NuGet.org Bug]: Sponsor link emits invalid HTML #10739

@kzu

Description

@kzu

Impact

I'm unable to use NuGet.org

Describe the bug

See https://www.nuget.org/packages/ThisAssembly.Constants (view source).

The HTML for the Sponsor link div container is:

<div class="external-link-container">
    <i class="ms-Icon ms-Icon--Link sidebar-link-icon" aria-hidden="true"></i>
    <a href="https://github.com/sponsors/devlooped" target="_blank" rel="nofollow noopener noreferrer" class="sidebar-link" data-sponsorship-url=""https://github.com/sponsors/devlooped"">
        https://github.com/sponsors/devlooped
    </a>
</div>

notice the (invalid) extra quotes around the sponsorship URL

Repro Steps

Navigate to the page, do View Source, and find the data-sponsorship-url element. You may need to curl the page to get the broken HTML

Expected Behavior

HTML is actually valid.

Screenshots

No response

Additional Context and logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions