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

update for process 2023 #1752

Merged
merged 1 commit into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/l10n-en_GB.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export const messages = {
'sotd.stability.no-cr-review':
'No wide review link for Candidate Recommendation',
'sotd.stability.wrong-cr-review-link':
"Wrong wide review link for Candidate Recommendation, link should be 'https://www.w3.org/2021/Process-20211102/#dfn-wide-review'",
"Wrong wide review link for Candidate Recommendation, link should be 'https://www.w3.org/2023/Process-20230612/#dfn-wide-review'",
'sotd.stability.no-licensing-link':
"Wrong royalty-free licensing link for CR and REC, link should be ${licensingLink} with text '${licensingText}'",
// sotd/review-end
Expand Down Expand Up @@ -279,7 +279,7 @@ export const messages = {
'Deliverer not found. An attribute <code>data-deliverer</code> must be in the SotD',
// sotd/new-features
'sotd.new-features.no-link':
'The paragraph on future updates to the recommendation should include a link to the new features: https://www.w3.org/2021/Process-20211102/#allow-new-features',
'The paragraph on future updates to the recommendation should include a link to the new features: https://www.w3.org/2023/Process-20230612/#allow-new-features',
'sotd.new-features.no-warning':
"<strong style='font-size: 20px;'>If it is the intention to incorporate new features in future updates of the Recommendation, please make sure to identify the document as intending to allow new features.</strong>",
// structure/canonical
Expand Down
70 changes: 35 additions & 35 deletions lib/rules.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/rules/sotd/new-features.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function check(sr, done) {
);
const linkTxt = 'new features';
const linkHref =
'https://www.w3.org/2021/Process-20211102/#allow-new-features';
'https://www.w3.org/2023/Process-20230612/#allow-new-features';

if (sotd && sr.norm(sotd.textContent).match(warning)) {
const foundLink = Array.prototype.some.call(
Expand Down
10 changes: 5 additions & 5 deletions lib/rules/sotd/process-document.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export function check(sr, done) {
const docDate = sr.getDocumentDate();
const BOILERPLATE_PREFIX = 'This document is governed by the ';
const BOILERPLATE_SUFFIX = ' W3C Process Document.';
let proc = '2 November 2021';
let procUri = 'https://www.w3.org/2021/Process-20211102/';
if (docDate < new Date('2021-09-14')) {
proc = '15 September 2020';
procUri = 'https://www.w3.org/2020/Process-20200915/';
let proc = '12 June 2023';
let procUri = 'https://www.w3.org/2023/Process-20230612/';
if (docDate < new Date('2023-07-01')) {
proc = '2 November 2021';
procUri = 'https://www.w3.org/2021/Process-20211102/';
}

const boilerplate = BOILERPLATE_PREFIX + proc + BOILERPLATE_SUFFIX;
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/sotd/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function check(sr, done) {

// Check track link
const urlExpected =
'https://www.w3.org/2021/Process-20211102/#recs-and-notes';
'https://www.w3.org/2023/Process-20230612/#recs-and-notes';
const trackEle = Array.prototype.filter.call(sotdLinks, ele =>
sr.norm(ele.textContent).match(`${sr.config.track} track`)
)[0];
Expand Down Expand Up @@ -69,7 +69,7 @@ export async function check(sr, done) {
sr.config.status === 'REC' ? sr.getRecMetadata({}) : null;
// check if 'candidate amendments' or 'proposed amendments' link in same paragraph is valid.
if (recType && JSON.stringify(recType) !== '{}') {
const BASE_URL = 'https://www.w3.org/2021/Process-20211102/';
const BASE_URL = 'https://www.w3.org/2023/Process-20230612/';
let urlExpected;
let textExpected;
// for proposed amendments, proposed additions, proposed corrections.
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/sotd/stability.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export function check(sr, done) {
if (!review) sr.error(self, 'no-cr-review');
else if (
review.href !==
'https://www.w3.org/2021/Process-20211102/#dfn-wide-review'
'https://www.w3.org/2023/Process-20230612/#dfn-wide-review'
)
sr.error(self, 'wrong-cr-review-link');
}
Expand Down
2 changes: 1 addition & 1 deletion test/doc-views/TR/Recommendation/REC.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default {
showProposedAdd: true,
},
processHTML:
'2 November 2021 <abbr title="World Wide Web Consortium">W3C</abbr> Process Document',
'12 June 2023 <abbr title="World Wide Web Consortium">W3C</abbr> Process Document',
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions test/doc-views/TR/TRBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export function buildCommonViewData(base) {
sotd: {
...base.sotd,
processLink:
'https://www.w3.org/wrong/link/2021/Process-20211102/',
'https://www.w3.org/wrong/link/2023/Process-20230612/',
},
},
duplicatedProcess: {
Expand Down Expand Up @@ -151,7 +151,7 @@ export function buildCommonViewData(base) {
sotd: {
...base.sotd,
trackLink:
'https://www.w3.org/2021/Process-20211102/#wrong-url',
'https://www.w3.org/2023/Process-20230612/#wrong-url',
},
},
noHomepageLink: {
Expand Down
6 changes: 3 additions & 3 deletions test/doc-views/layout/spec.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
</p>
{{#if sotd.rec.showProposedAdd}}
<p>
It includes <a href="https://www.w3.org/2021/Process-20211102/#proposed-addition">proposed addition</a>, introducing new features since the Previous Recommendation.
It includes <a href="https://www.w3.org/2023/Process-20230612/#proposed-addition">proposed addition</a>, introducing new features since the Previous Recommendation.
</p>
{{/if}}
{{#if sotd.rec.showAddition}}
Expand Down Expand Up @@ -235,11 +235,11 @@
{{> patent-policy}}

<p>
This document <span class="handlebars-data">{{sotd.processTextPrefix}}</span>{{! is governed by the}} <a id="w3c_process_revision" href="{{sotd.processLink}}"><span class="handlebars-data">{{{sotd.processHTML}}}{{! 2 November 2021 W3C Process Document }}</span></a>.
This document <span class="handlebars-data">{{sotd.processTextPrefix}}</span>{{! is governed by the}} <a id="w3c_process_revision" href="{{sotd.processLink}}"><span class="handlebars-data">{{{sotd.processHTML}}}{{! 12 June 2023 W3C Process Document }}</span></a>.
</p>
{{#if sotd.duplicateProcess}}
<p>
This document <span class="handlebars-data">{{sotd.processTextPrefix}}</span>{{! is governed by the}} <a id="w3c_process_revision" href="{{sotd.processLink}}"><span class="handlebars-data">{{{sotd.processHTML}}}{{! 2 November 2021 W3C Process Document }}</span></a>.
This document <span class="handlebars-data">{{sotd.processTextPrefix}}</span>{{! is governed by the}} <a id="w3c_process_revision" href="{{sotd.processLink}}"><span class="handlebars-data">{{{sotd.processHTML}}}{{! 12 June 2023 W3C Process Document }}</span></a>.
</p>
{{/if}}
{{#if sotd.newFeatures.show}}
Expand Down
4 changes: 2 additions & 2 deletions test/doc-views/partials/stability.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

DISC: Publication as a Discontinued Draft implies that this document is no longer intended to advance or to be maintained. It is inappropriate to cite this document as other than abandoned work.

CR: Publication as a Candidate Recommendation does not imply endorsement by <abbr title="World Wide Web Consortium">W3C</abbr> and its Members. A Candidate Recommendation Snapshot has received <a href="https://www.w3.org/2021/Process-20211102/#dfn-wide-review">wide review</a>, is intended to gather implementation experience, and has commitments from Working Group members to <a href="https://www.w3.org/Consortium/Patent-Policy/#sec-Requirements">royalty-free licensing</a> for implementations.
CR: Publication as a Candidate Recommendation does not imply endorsement by <abbr title="World Wide Web Consortium">W3C</abbr> and its Members. A Candidate Recommendation Snapshot has received <a href="https://www.w3.org/2023/Process-20230612/#dfn-wide-review">wide review</a>, is intended to gather implementation experience, and has commitments from Working Group members to <a href="https://www.w3.org/Consortium/Patent-Policy/#sec-Requirements">royalty-free licensing</a> for implementations.

CRD: Publication as a Candidate Recommendation does not imply endorsement by <abbr title="World Wide Web Consortium">W3C</abbr> and its Members. A Candidate Recommendation Draft integrates changes from the previous Candidate Recommendation that the Working Group intends to include in a subsequent Candidate Recommendation Snapshot.
+
Expand Down Expand Up @@ -72,7 +72,7 @@

DRY: Publication as a Draft Registry does not imply endorsement by <abbr title="World Wide Web Consortium">W3C</abbr> and its Members. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.

CRY: Publication as a Candidate Registry Snapshot does not imply endorsement by <abbr title="World Wide Web Consortium">W3C</abbr> and its Members. A Candidate Registry Snapshot has received <a href="https://www.w3.org/2021/Process-20211102/#dfn-wide-review">wide review</a>.
CRY: Publication as a Candidate Registry Snapshot does not imply endorsement by <abbr title="World Wide Web Consortium">W3C</abbr> and its Members. A Candidate Registry Snapshot has received <a href="https://www.w3.org/2023/Process-20230612/#dfn-wide-review">wide review</a>.

CRYD: Publication as a Candidate Registry Draft does not imply endorsement by <abbr title="World Wide Web Consortium">W3C</abbr> and its Members. A Candidate Registry Draft integrates changes from the previous Candidate Registry that the Working Group intends to include in a subsequent Candidate Registry Snapshot.

Expand Down
8 changes: 4 additions & 4 deletions test/doc-views/specBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const data = {
group: 'Internationalization Working Group',

WGLink: 'https://www.w3.org/groups/wg/i18n-core',
trackLink: 'https://www.w3.org/2021/Process-20211102/#recs-and-notes',
trackLink: 'https://www.w3.org/2023/Process-20230612/#recs-and-notes',
extra1: '',
noEndorsementHTML:
'does not imply endorsement by <abbr title="World Wide Web Consortium">W3C</abbr> and its Members',
Expand All @@ -146,7 +146,7 @@ export const data = {
discText: 'intended to advance or to be maintained',
wideReviewText: 'wide review',
wideReviewLink:
'https://www.w3.org/2021/Process-20211102/#dfn-wide-review',
'https://www.w3.org/2023/Process-20230612/#dfn-wide-review',
recConsensusText: 'after extensive consensus-building',

licensingText: 'royalty-free licensing',
Expand Down Expand Up @@ -180,9 +180,9 @@ export const data = {

duplicateProcess: false,
processTextPrefix: 'is governed by the',
processLink: 'https://www.w3.org/2021/Process-20211102/',
processLink: 'https://www.w3.org/2023/Process-20230612/',
processHTML:
'2 November 2021 <abbr title="World Wide Web Consortium">W3C</abbr> Process Document',
'12 June 2023 <abbr title="World Wide Web Consortium">W3C</abbr> Process Document',
newFeatures: {
show: false,
text: 'Future updates to this Recommendation may incorporate new features.',
Expand Down
6 changes: 3 additions & 3 deletions test/docs/2021-cr.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ <h2>Status of This Document</h2>
<p>
This document was published by the <a href="https://www.w3.org/groups/wg/webperf">Web Performance Working Group</a>
as a Candidate Recommendation Snapshot using the <a
href="https://www.w3.org/2021/Process-20211102/#recs-and-notes">Recommendation
href="https://www.w3.org/2023/Process-20230612/#recs-and-notes">Recommendation
track</a>.
</p>

<p>
Publication as a Candidate Recommendation does not imply endorsement by
<abbr title="World Wide Web Consortium">W3C</abbr> and its Members.
A Candidate Recommendation Snapshot has received <a
href="https://www.w3.org/2021/Process-20211102/#dfn-wide-review">wide review</a>, is intended to
href="https://www.w3.org/2023/Process-20230612/#dfn-wide-review">wide review</a>, is intended to
gather implementation experience, and has commitments from Working Group members to <a
href="https://www.w3.org/Consortium/Patent-Policy/#sec-Requirements">royalty-free licensing</a> for implementations.
</p>
Expand All @@ -111,7 +111,7 @@ <h2>Status of This Document</h2>
Patent Policy</a>. <abbr title="World Wide Web Consortium">W3C</abbr> maintains a <a rel="disclosure" href="https://www.w3.org/groups/wg/webperf/ipr">public list of any patent disclosures</a> made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains <a href="https://www.w3.org/Consortium/Patent-Policy/#def-essential">Essential Claim(s)</a> must disclose the information in accordance with <a href="https://www.w3.org/Consortium/Patent-Policy/#sec-Disclosure">section 6 of the <abbr title="World Wide Web Consortium">W3C</abbr> Patent Policy</a>.
</p>
<p>
This document is governed by the <a id="w3c_process_revision" href="https://www.w3.org/2021/Process-20211102/">2 November 2021 <abbr title="World Wide Web Consortium">W3C</abbr> Process Document</a>.
This document is governed by the <a id="w3c_process_revision" href="https://www.w3.org/2023/Process-20230612/">12 June 2023 <abbr title="World Wide Web Consortium">W3C</abbr> Process Document</a>.
</p>
</section><nav id="toc"><h2 class="introductory" id="table-of-contents">Table of Contents</h2><ol class="toc"><li class="tocline"><a class="tocxref" href="#introduction"><bdi class="secno">1. </bdi>Introduction</a><ol class="toc"><li class="tocline"><a class="tocxref" href="#examples"><bdi class="secno">1.1 </bdi>Examples</a></li></ol></li><li class="tocline"><a class="tocxref" href="#sec-time-origin"><bdi class="secno">2. </bdi>Time Origin</a></li><li class="tocline"><a class="tocxref" href="#sec-domhighrestimestamp"><bdi class="secno">3. </bdi>The <span data-dfn-type="typedef" data-export="" data-idl="typedef" data-title="DOMHighResTimeStamp" data-dfn-for=""><code>DOMHighResTimeStamp</code></span> typedef</a></li><li class="tocline"><a class="tocxref" href="#sec-performance"><bdi class="secno">4. </bdi>The <span data-dfn-type="interface" data-export="" data-idl="interface" data-title="Performance" data-dfn-for=""><code>Performance</code></span> interface</a><ol class="toc"><li class="tocline"><a class="tocxref" href="#now-method"><bdi class="secno">4.1 </bdi><code>now()</code> method</a></li><li class="tocline"><a class="tocxref" href="#timeorigin-attribute"><bdi class="secno">4.2 </bdi><code>timeOrigin</code> attribute</a></li><li class="tocline"><a class="tocxref" href="#tojson-method"><bdi class="secno">4.3 </bdi><code>toJSON()</code> method</a></li></ol></li><li class="tocline"><a class="tocxref" href="#extensions-to-windoworworkerglobalscope-mixin"><bdi class="secno">5. </bdi>Extensions to <code>WindowOrWorkerGlobalScope</code> mixin</a><ol class="toc"><li class="tocline"><a class="tocxref" href="#the-performance-attribute"><bdi class="secno">5.1 </bdi>The <code>performance</code> attribute</a></li></ol></li><li class="tocline"><a class="tocxref" href="#sec-monotonic-clock"><bdi class="secno">6. </bdi>Monotonic Clock</a></li><li class="tocline"><a class="tocxref" href="#sec-privacy-security"><bdi class="secno">7. </bdi>Privacy and Security</a><ol class="toc"><li class="tocline"><a class="tocxref" href="#clock-resolution"><bdi class="secno">7.1 </bdi>Clock resolution</a></li><li class="tocline"><a class="tocxref" href="#clock-drift"><bdi class="secno">7.2 </bdi>Clock drift</a></li></ol></li><li class="tocline"><a class="tocxref" href="#conformance"><bdi class="secno">8. </bdi>Conformance</a></li><li class="tocline"><a class="tocxref" href="#idl-index"><bdi class="secno">9. </bdi>IDL Index</a></li><li class="tocline"><a class="tocxref" href="#acknowledgments"><bdi class="secno">A. </bdi>Acknowledgments</a></li><li class="tocline"><a class="tocxref" href="#references"><bdi class="secno">B. </bdi>References</a><ol class="toc"><li class="tocline"><a class="tocxref" href="#normative-references"><bdi class="secno">B.1 </bdi>Normative references</a></li><li class="tocline"><a class="tocxref" href="#informative-references"><bdi class="secno">B.2 </bdi>Informative references</a></li></ol></li></ol></nav>
<section id="introduction" class="informative">
Expand Down
4 changes: 2 additions & 2 deletions test/docs/2021-crd.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ <h2>Status of This Document</h2>

<p><em>This section describes the status of this document at the time of its publication. A list of current <abbr title="World Wide Web Consortium">W3C</abbr> publications and the latest revision of this technical report can be found in the <a href="https://www.w3.org/TR/"><abbr title="World Wide Web Consortium">W3C</abbr> technical reports index</a> at https://www.w3.org/TR/.</em></p>

<p>This document was published by the <a href="https://www.w3.org/groups/wg/webperf">Web Performance Working Group</a> as a Candidate Recommendation Draft using the <a href='https://www.w3.org/2021/Process-20211102/#recs-and-notes'>Recommendation track</a>.</p>
<p>This document was published by the <a href="https://www.w3.org/groups/wg/webperf">Web Performance Working Group</a> as a Candidate Recommendation Draft using the <a href='https://www.w3.org/2023/Process-20230612/#recs-and-notes'>Recommendation track</a>.</p>

<p>
Publication as a Candidate Recommendation does not imply endorsement by <abbr
Expand All @@ -127,7 +127,7 @@ <h2>Status of This Document</h2>
</p>

<p>
This document is governed by the <a id="w3c_process_revision" href="https://www.w3.org/2021/Process-20211102/">2 November 2021 <abbr title="World Wide Web Consortium">W3C</abbr> Process Document</a>.
This document is governed by the <a id="w3c_process_revision" href="https://www.w3.org/2023/Process-20230612/">12 June 2023 <abbr title="World Wide Web Consortium">W3C</abbr> Process Document</a>.
</p>
</section>
<nav id="toc">
Expand Down
Loading