testilo 3.9.15 → 3.9.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -18,9 +18,10 @@
|
|
|
18
18
|
<h1>Transactional accessibility comparison</h1>
|
|
19
19
|
</header>
|
|
20
20
|
<h2>Introduction</h2>
|
|
21
|
-
<p>This report compares __pageCount__ web pages, rating each page on <dfn>transactional accessibility</dfn>. The score given to each page estimates the <a href="https://www.w3.org/WAI/fundamentals/accessibility-intro/">accessibility</a> of one particular transaction
|
|
22
|
-
<p>You can find a more detailed explanation of transactional accessibility and how the accessibility of this particular transaction is scored in each of the
|
|
23
|
-
<p>This report was produced by the <code>cpA11yMessage</code> procedure of <a href="https://www.npmjs.com/package/testilo">Testilo</a
|
|
21
|
+
<p>This report compares __pageCount__ web pages, rating each page on <dfn>transactional accessibility</dfn>. The score given to each page estimates the <a href="https://www.w3.org/WAI/fundamentals/accessibility-intro/">accessibility</a> of one particular transaction. In it, the user discovers how to report an accessibility issue with the page to those who are responsible for the page.</p>
|
|
22
|
+
<p>You can find a more detailed explanation of transactional accessibility and how the accessibility of this particular transaction is scored in each of the digests that this report is derived from. The scores in the table below are links to those digests.</p>
|
|
23
|
+
<p>This comparative report was produced by the <code>cpA11yMessage</code> procedure of <a href="https://www.npmjs.com/package/testilo">Testilo</a>.</p>
|
|
24
|
+
<p>The scores in the table below could range from 0 (complete failure) up to 23 (complete success).</p>
|
|
24
25
|
<h2>Comparison</h2>
|
|
25
26
|
<table class="allBorder">
|
|
26
27
|
<caption>Accessibility scores of accessibility-reporting transactions</caption>
|
|
@@ -46,7 +46,7 @@ const getMaxScore = tableData => tableData.reduce((max, item) => Math.max(max, i
|
|
|
46
46
|
const getTableBody = async bodyData => {
|
|
47
47
|
const maxScore = getMaxScore(bodyData);
|
|
48
48
|
const rows = bodyData
|
|
49
|
-
.sort((a, b) =>
|
|
49
|
+
.sort((a, b) => b.score - a.score)
|
|
50
50
|
.map(item => {
|
|
51
51
|
const {id, org, url, score} = item;
|
|
52
52
|
const pageCell = `<th scope="row"><a href="${url}">${org}</a></th>`;
|