Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
fix(w3c/headers): update translations URL (speced#3623)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres authored Jun 14, 2021
1 parent 6250731 commit cde3ab6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/w3c/templates/headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export default (conf, options) => {
? html`<p>
See also
<a
href="${`http://www.w3.org/2003/03/Translations/byTechnology?technology=${conf.shortName}`}"
href="${`https://www.w3.org/Translations/?technology=${conf.shortName}`}"
>
<strong>translations</strong></a
>.
Expand Down
4 changes: 2 additions & 2 deletions tests/spec/w3c/headers-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1962,7 +1962,7 @@ describe("W3C — Headers", () => {
Object.assign(ops.config, newProps);
const doc = await makeRSDoc(ops);
const aElem = doc.querySelector(
`a[href^="http://www.w3.org/2003/03/Translations/"]`
`a[href^="https://www.w3.org/Translations/"]`
);
expect(aElem.href.endsWith("PASS")).toBeTruthy();
const textContent = aElem.parentElement.textContent
Expand All @@ -1980,7 +1980,7 @@ describe("W3C — Headers", () => {
Object.assign(ops.config, newProps);
const doc = await makeRSDoc(ops);
const aElem = doc.querySelector(
`a[href^="http://www.w3.org/2003/03/Translations/"]`
`a[href^="https://www.w3.org/Translations/"]`
);
expect(aElem).toBeNull();
});
Expand Down

0 comments on commit cde3ab6

Please sign in to comment.