testaro 69.0.3 → 69.1.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/procs/catalog.js +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "69.0.3",
3
+ "version": "69.1.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": {
package/procs/catalog.js CHANGED
@@ -110,8 +110,11 @@ exports.getCatalog = async report => {
110
110
  ) {
111
111
  // For each element that has it:
112
112
  textElementIndexes.forEach(index => {
113
- // If it is not in the head:
114
- if (! cat.element[index].pathID.includes('/head[1]')) {
113
+ // If it is not in the head, a script, a style, or a noscript element:
114
+ if (
115
+ ! ['/head[1]', '/script[', '/style[', '/noscript[']
116
+ .some(excluder => cat.element[index].pathID.includes(excluder))
117
+ ) {
115
118
  // Mark it as linkable in the element data in the catalog.
116
119
  cat.element[index].textLinkable = true;
117
120
  }