Skip to content

fix(sotd): remove array wrapper on wgPatentURI in patent disclosure link#5180

Open
marcoscaceres wants to merge 3 commits intomainfrom
fix/wgPatentURI-self-ref
Open

fix(sotd): remove array wrapper on wgPatentURI in patent disclosure link#5180
marcoscaceres wants to merge 3 commits intomainfrom
fix/wgPatentURI-self-ref

Conversation

@marcoscaceres
Copy link
Copy Markdown
Contributor

The template had href=${[wgPatentURI]} which wraps the URI in a JS array. When wgPatentURI is undefined, array-to-string coercion produces an empty string, creating a self-referencing . Removed the array wrapper.

Closes #2638

The template had href=${[wgPatentURI]} which wraps the URI in a JS
array. When wgPatentURI is undefined, array-to-string coercion
produces an empty string, creating a self-referencing <a href="">.
Remove the array wrapper so the URI is used directly.

Closes #2638
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the W3C SOTD “patent disclosures” link rendering by removing an unintended array wrapper around wgPatentURI, which could coerce undefined to an empty string and produce a self-referencing <a href=""> link.

Changes:

  • Update the SOTD deliverer template to use wgPatentURI directly in the patent disclosure link href.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@marcoscaceres
Copy link
Copy Markdown
Contributor Author

@copilot, does it even make sense put print the patent link if there's no conf.wgPatentURI?

Copy link
Copy Markdown

Copilot AI commented Apr 13, 2026

@copilot, does it even make sense put print the patent link if there's no conf.wgPatentURI?

No, it doesn't make sense to show the link without a URI. Fixed in f86db0a — when wgPatentURI is absent, the text "public list of any patent disclosures" is now rendered as plain text rather than an <a> element.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid self-referencing anchor created in absence of wgPatentURI

3 participants