Skip to content

Commit

Permalink
implement last minute wording changes
Browse files Browse the repository at this point in the history
  • Loading branch information
deniak committed Nov 3, 2021
1 parent 7f77a50 commit 6f40f5f
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 33 deletions.
24 changes: 12 additions & 12 deletions lib/rules.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions lib/rules/sotd/stability.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SotD
// stability warning
// <p>Publication as a Working Draft does not imply endorsement by the W3C Membership.</p>
// <p>Publication as a Working Draft does not imply endorsement by W3C Membership.</p>
const util = require('../../util');

function findSW(candidates, sr) {
Expand All @@ -11,10 +11,10 @@ function findSW(candidates, sr) {
sr.config.longStatus === 'Group Draft Note'
) {
// Find the sentence of 'Group Notes are not endorsed by the W3C nor its Membership.'
wanted = `${sr.config.longStatus}s are not endorsed by the W3C nor its Membership.`;
wanted = `${sr.config.longStatus}s are not endorsed by W3C nor its Membership.`;
} else if (sr.config.longStatus === 'Statement') {
wanted =
'A W3C Statement is a specification that, after extensive consensus-building, has received the endorsement of the W3C and its Members.';
'A W3C Statement is a specification that, after extensive consensus-building, has received the endorsement of W3C and its Members.';
} else {
const { crType } = sr.config;
const INTRO_S =
Expand All @@ -31,7 +31,7 @@ function findSW(candidates, sr) {
: '';
wanted = `Publication as ${article} ${
sr.config.longStatus
}${represent} does not imply endorsement by the W3C Membership.${
}${represent} does not imply endorsement by W3C and its Members.${
crType ? CR_INTRO : ''
}`;
}
Expand Down Expand Up @@ -62,7 +62,7 @@ exports.check = function (sr, done) {
if (sotd) {
if (sr.config.stabilityWarning === 'REC') {
const txt = sr.norm(sotd && sotd.textContent);
const wanted = `A W3C Recommendation is a specification that, after extensive consensus-building, has received the endorsement of the W3C and its Members, and participants granted Royalty-Free IPR licenses for implementations.`;
const wanted = `A W3C Recommendation is a specification that, after extensive consensus-building, has received the endorsement by W3C and its Members, and participants granted Royalty-Free IPR licenses for implementations.`;
const rex = new RegExp(wanted);
if (!rex.test(txt)) sr.error(self, 'no-rec-review');
} else {
Expand Down
2 changes: 1 addition & 1 deletion test/docs/headers/ig-note.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h2>Status of This Document</h2>
It's a valid test!
</p>
<p>
Specbreus and W3C love you. There can be more sentences here. Publication as an Interest Group Note does not imply endorsement by the W3C Membership. This is a
Specbreus and W3C love you. There can be more sentences here. Publication as an Interest Group Note does not imply endorsement by W3C 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.
</p>
Expand Down
2 changes: 1 addition & 1 deletion test/docs/headers/simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h2>Status of This Document</h2>
It's a valid test!
</p>
<p>
Publication as a Working Draft does not imply endorsement by the W3C Membership. This is a
Publication as a Working Draft does not imply endorsement by W3C 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.
</p>
Expand Down
2 changes: 1 addition & 1 deletion test/docs/headers/wd.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h2>Status of This Document</h2>
</p>
<!-- 'does not necessarily represent a consensus of the Working Group and' is to check 'sotd.stability', should pass for WD-->
<p>
Publication as a Working Draft does not necessarily represent a consensus of the Working Group and does not imply endorsement by the W3C Membership. 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.
Publication as a Working Draft does not necessarily represent a consensus of the Working Group and does not imply endorsement by W3C 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.
</p>
<h2>Table of Contents</h2>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion test/docs/headers/wg-note1.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h2>Status of This Document</h2>
- should fail WD check for no following 'It is inappropriate...' in same p
-->
<p>
Publication as a Working Group Note does not imply endorsement by the W3C Membership. This is a
Publication as a Working Group Note does not imply endorsement by W3C and its Members. This is a
draft document and may be updated, replaced or obsoleted by other documents at any time.
</p>
<p>
Expand Down
2 changes: 1 addition & 1 deletion test/docs/headers/wg-note2.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h2>Status of This Document</h2>
</p>
<!-- 'Publication as an Working...'' is to check 'sotd.stability', should pass -->
<p>
Publication as a Working Group Note does not imply endorsement by the W3C Membership. This is a
Publication as a Working Group Note does not imply endorsement by W3C 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.
</p>
<h2>Table of Contents</h2>
Expand Down
4 changes: 2 additions & 2 deletions test/docs/online/IG-NOTE-media-timed-events.html
Original file line number Diff line number Diff line change
Expand Up @@ -660,8 +660,8 @@ <h2>Status of This Document</h2>
Issues</a> are preferred for discussion of this
specification.</p>
<p>Publication as an Interest Group Note does not imply
endorsement by the <abbr title=
"World Wide Web Consortium">W3C</abbr> Membership. This is a
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.</p>
Expand Down
6 changes: 3 additions & 3 deletions test/docs/online/WD-screen-orientation.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ <h2>


</p><p>
Publication as a Working Draft does not imply endorsement by the <abbr title="World Wide Web Consortium">W3C</abbr>
Membership. This is a draft document and may be updated, replaced or
Publication as a Working Draft 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.
</p><p>
Expand Down Expand Up @@ -1429,4 +1429,4 @@ <h3 id="c-2-informative-references"><bdi class="secno">C.2 </bdi>
<dt id="bib-appmanifest">[appmanifest]</dt><dd><a href="https://www.w3.org/TR/appmanifest/"><cite>Web App Manifest</cite></a>. Marcos Caceres; Kenneth Christiansen; Mounir Lamouri; Anssi Kostiainen; Matt Giuca; Aaron Gustafson. W3C. 30 March 2020. W3C Working Draft. URL: <a href="https://www.w3.org/TR/appmanifest/">https://www.w3.org/TR/appmanifest/</a></dd><dt id="bib-css-adaptation">[CSS-ADAPTATION]</dt><dd><a href="https://www.w3.org/TR/css-device-adapt-1/"><cite>CSS Device Adaptation Module Level 1</cite></a>. Rune Lillesveen; Florian Rivoal; Matt Rakow. W3C. 29 March 2016. W3C Working Draft. URL: <a href="https://www.w3.org/TR/css-device-adapt-1/">https://www.w3.org/TR/css-device-adapt-1/</a></dd><dt id="bib-wcag21">[WCAG21]</dt><dd><a href="https://www.w3.org/TR/WCAG21/"><cite>Web Content Accessibility Guidelines (WCAG) 2.1</cite></a>. Andrew Kirkpatrick; Joshue O Connor; Alastair Campbell; Michael Cooper. W3C. 5 June 2018. W3C Recommendation. URL: <a href="https://www.w3.org/TR/WCAG21/">https://www.w3.org/TR/WCAG21/</a></dd>
</dl></section></section><p role="navigation" id="back-to-top">
<a href="#title"><abbr title="Back to Top"></abbr></a>
</p><script src="https://www.w3.org/scripts/TR/2021/fixup.js"></script></body></html>
</p><script src="https://www.w3.org/scripts/TR/2021/fixup.js"></script></body></html>
4 changes: 2 additions & 2 deletions test/docs/online/WG-NOTE-lpf.html
Original file line number Diff line number Diff line change
Expand Up @@ -778,8 +778,8 @@
(<a href="https://lists.w3.org/Archives/Public/public-publ-wg/">archives</a>).

</p><p>
Publication as a Working Group Note does not imply endorsement by the
<abbr title="World Wide Web Consortium">W3C</abbr> Membership. This is a draft document and may be updated, replaced or
Publication as a Working Group Note 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.
</p><p data-deliverer="100074">
Expand Down
4 changes: 2 additions & 2 deletions test/docs/sotd/cr-end-27days.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ <h2>Status of This Document</h2>
This document was published by the <a href="https://www.w3.org/webperf/">Web Performance Working Group</a> as a Candidate Recommendation Draft using the Recommendation track.
</p>
<p>
Publication as a Candidate Recommendation does not imply endorsement by the <abbr title="World Wide Web Consortium">W3C</abbr> Membership. A Candidate Recommendation Draft integrates changes from the previous Candidate Recommendation that the Working Group intends to include in a subsequent Candidate Recommendation Snapshot.
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.
</p>

<!-- check sotd.stability as CRS, error: no-cr-review. because 'wide review' has no link -->
<p>
Publication as a Candidate Recommendation does not imply endorsement by the W3C Membership. A Candidate Recommendation Snapshot has received wide review, is intended to gather implementation experience, and has commitments from Working Group members to royalty-free licensing for implementations.
Publication as a Candidate Recommendation does not imply endorsement by W3C and its Members. A Candidate Recommendation Snapshot has received wide review, is intended to gather implementation experience, and has commitments from Working Group members to royalty-free licensing for implementations.
</p>

<!-- fail check sotd.draft-stability , as CRD, message: two-found-->
Expand Down
2 changes: 1 addition & 1 deletion test/docs/sotd/cr-end-multiple.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h2>Status of This Document</h2>

<!-- check sotd.stability as CRS, error: wrong-cr-review-link. because 'wide review' link is not correct-->
<p>
Publication as a Candidate Recommendation does not imply endorsement by the W3C Membership. A Candidate Recommendation Snapshot has received <a href="https://www.w3.org/2021/Process-20211102/#some-random">wide review</a>, is intended to gather implementation experience, and has commitments from Working Group members to royalty-free licensing for implementations.
Publication as a Candidate Recommendation does not imply endorsement by W3C and its Members. A Candidate Recommendation Snapshot has received <a href="https://www.w3.org/2021/Process-20211102/#some-random">wide review</a>, is intended to gather implementation experience, and has commitments from Working Group members to royalty-free licensing for implementations.
</p>
</section>
</body>
Expand Down
2 changes: 1 addition & 1 deletion test/docs/sotd/rec-addition-2021.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ <h2>Status of This Document</h2>
introducing substantive changes and new features since the Previous Recommendation.
</p>
<p>
A W3C Recommendation is a specification that, after extensive consensus-building, has received the endorsement of the W3C and its Members, and participants granted Royalty-Free IPR licenses for implementations.
A W3C Recommendation is a specification that, after extensive consensus-building, has received the endorsement of W3C and its Members, and participants granted Royalty-Free IPR licenses for implementations.
</p>
<p>
The W3C Membership and other interested parties are invited to review the proposed amendments and send comments
Expand Down

0 comments on commit 6f40f5f

Please sign in to comment.