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 +1 -1
- package/procs/standardize.js +2 -2
package/package.json
CHANGED
package/procs/standardize.js
CHANGED
|
@@ -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
|
};
|