testaro 28.0.2 → 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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 Jonathan Pool
3
+ Copyright (c) 2021, 2022, 2023 Jonathan Robert Pool
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "28.0.2",
4
- "description": "Run 650 web accessibility tests from 8 tools and get a standardized report",
3
+ "version": "28.0.4",
4
+ "description": "Run 760 web accessibility tests from 9 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "tests": "node validation/executors/tests",
@@ -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()