Skip to content

Commit

Permalink
Merge branch 'main' into 20231103-process
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi authored Nov 9, 2023
2 parents 028d752 + 94bf3de commit 25151e4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
8 changes: 4 additions & 4 deletions src/w3c/headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
// intended to be pushed to the WHATWG.
// - "w3c-software", a permissive and attributions license (but GPL-compatible).
// - "w3c-software-doc", (default) the W3C Software and Document License
// https://www.w3.org/Consortium/Legal/2023/software-license
// https://www.w3.org/copyright/software-license-2023/
import {
ISODate,
codedJoinAnd,
Expand Down Expand Up @@ -223,15 +223,15 @@ export const licenses = new Map([
{
name: "W3C Software Notice and License",
short: "W3C Software",
url: "https://www.w3.org/Consortium/Legal/2002/copyright-software-20021231",
url: "https://www.w3.org/copyright/software-license-2002/",
},
],
[
"w3c-software-doc",
{
name: "W3C Software and Document Notice and License",
short: "permissive document license",
url: "https://www.w3.org/Consortium/Legal/2023/software-license",
url: "https://www.w3.org/copyright/software-license-2023/",
},
],
[
Expand All @@ -247,7 +247,7 @@ export const licenses = new Map([
{
name: "W3C Document License",
short: "document use",
url: "https://www.w3.org/Consortium/Legal/copyright-documents",
url: "https://www.w3.org/copyright/document-license/",
},
],
[
Expand Down
4 changes: 1 addition & 3 deletions src/w3c/templates/cgbg-headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,7 @@ export default (conf, options) => {
${existingCopyright
? existingCopyright
: html`<p class="copyright">
<a href="https://www.w3.org/Consortium/Legal/ipr-notice#Copyright"
>Copyright</a
>
<a href="https://www.w3.org/policies/#copyright">Copyright</a>
&copy;
${conf.copyrightStart
? `${conf.copyrightStart}-`
Expand Down
11 changes: 3 additions & 8 deletions src/w3c/templates/headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,21 +439,16 @@ function renderCopyright(conf) {

function renderOfficialCopyright(conf) {
return html`<p class="copyright">
<a href="https://www.w3.org/Consortium/Legal/ipr-notice#Copyright"
>Copyright</a
>
<a href="https://www.w3.org/policies/#copyright">Copyright</a>
&copy;
${conf.copyrightStart ? `${conf.copyrightStart}-` : ""}${conf.publishYear}
${conf.additionalCopyrightHolders
? html` ${[conf.additionalCopyrightHolders]} &amp; `
: ""}
<a href="https://www.w3.org/">World Wide Web Consortium</a>.
<abbr title="World Wide Web Consortium">W3C</abbr><sup>&reg;</sup>
<a href="https://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer"
>liability</a
>,
<a href="https://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks"
>trademark</a
<a href="https://www.w3.org/policies/#Legal_Disclaimer">liability</a>,
<a href="https://www.w3.org/policies/#W3C_Trademarks">trademark</a
>${linkLicense(conf.licenseInfo)}
</p>`;
}
2 changes: 1 addition & 1 deletion tests/spec/w3c/seo-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ describe("W3C - SEO", () => {
"https://www.w3.org/TR/2012/REC-some-spec-20120607/"
);
expect(jsonld.license).toBe(
"https://www.w3.org/Consortium/Legal/2023/software-license"
"https://www.w3.org/copyright/software-license-2023/"
);
expect(jsonld.name).toBe("Basic Title");
expect(jsonld.copyrightHolder).toEqual({
Expand Down

0 comments on commit 25151e4

Please sign in to comment.