testaro 28.0.3 → 28.0.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": "28.0.3",
3
+ "version": "28.0.4",
4
4
  "description": "Run 760 web accessibility tests from 9 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -272,6 +272,17 @@ const convert = (toolName, result, standardResult) => {
272
272
  if (ruleID === 'misused-required-attribute' && what.includes('not needed')) {
273
273
  ruleID = 'misused-required-attributeR';
274
274
  }
275
+ else if (ruleID === 'accessible-svg') {
276
+ if (what.includes('associated')) {
277
+ ruleID = 'accessible-svgI';
278
+ }
279
+ else if (what.includes('tabindex')) {
280
+ ruleID = 'accessible-svgT';
281
+ }
282
+ else {
283
+ ruleID = 'accessible-svgN';
284
+ }
285
+ }
275
286
  const {issueType} = result.rules[ruleID];
276
287
  const xpath = ruleResult.element && ruleResult.element.xpath || '';
277
288
  const tagName = xpath && xpath.replace(/^.*\//, '').replace(/[^-\w].*$/, '').toUpperCase()