testaro 61.1.0 → 61.2.0

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "61.1.0",
3
+ "version": "61.2.0",
4
4
  "description": "Run 1000 web accessibility tests from 11 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -39,7 +39,7 @@ const getIdentifiers = code => {
39
39
  // If there is any:
40
40
  if (startTagData) {
41
41
  // Get the tag name.
42
- const tagNameData = startTagData[1].match(/^[A-Za-z]+/);
42
+ const tagNameData = startTagData[1].match(/^[A-Za-z0-9]+/);
43
43
  const tagName = tagNameData ? tagNameData[0].toUpperCase() : '';
44
44
  // Get the value of the id attribute, if any.
45
45
  const idData = startTagData[1].match(/ id="([^"]+)"/);
package/tests/nuVal.js CHANGED
@@ -97,6 +97,11 @@ exports.reporter = async (page, report, actIndex) => {
97
97
  }
98
98
  }));
99
99
  }
100
+ // Remove messages reporting duplicate blank IDs.
101
+ const badMessages = new Set(['Duplicate ID .', 'The first occurrence of ID was here.']);
102
+ result[page[0]].messages = result[page[0]].messages.filter(
103
+ message => ! badMessages.has(message.message)
104
+ );
100
105
  }
101
106
  // If an error occurred:
102
107
  catch (error) {
package/tests/nuVnu.js CHANGED
@@ -115,6 +115,11 @@ exports.reporter = async (page, report, actIndex) => {
115
115
  }
116
116
  }));
117
117
  }
118
+ // Remove messages reporting duplicate blank IDs.
119
+ const badMessages = new Set(['Duplicate ID .', 'The first occurrence of ID was here.']);
120
+ result[page[0]].messages = result[page[0]].messages.filter(
121
+ message => ! badMessages.has(message.message)
122
+ );
118
123
  }
119
124
  }
120
125
  // If both page types prevented testing: