testaro 64.8.3 → 64.8.4

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": "64.8.3",
3
+ "version": "64.8.4",
4
4
  "description": "Run 1000 web accessibility tests from 11 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -346,7 +346,7 @@ const doWAVE = (result, standardResult, categoryName) => {
346
346
  // Otherwise, i.e. if the selector is not an element ID:
347
347
  else {
348
348
  // Get the element tagname from it.
349
- tagName = finalTerm.replace(/:.*/, '');
349
+ tagName = finalTerm.replace(/:.*/, '') || 'HTML';
350
350
  }
351
351
  const {wcag} = item;
352
352
  // Get a violation description suffix from the WCAG data of the rule.
@@ -363,7 +363,7 @@ const doWAVE = (result, standardResult, categoryName) => {
363
363
  location: {
364
364
  doc: 'dom',
365
365
  type: 'selector',
366
- spec: violationFacts[0]
366
+ spec: violationFacts[0] || 'html'
367
367
  },
368
368
  excerpt: violationFacts[1]
369
369
  };