testilo 12.2.1 → 12.2.2

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": "testilo",
3
- "version": "12.2.1",
3
+ "version": "12.2.2",
4
4
  "description": "Client that scores and digests Testaro reports",
5
5
  "main": "aim.js",
6
6
  "scripts": {
@@ -2258,13 +2258,6 @@ exports.issueClasses = {
2258
2258
  wcag: '1.3.1',
2259
2259
  weight: 4,
2260
2260
  tools: {
2261
- nuVal: {
2262
- 'Element title not allowed as child of element body in this context. (Suppressing further errors from this subtree.)': {
2263
- variable: false,
2264
- quality: 1,
2265
- what: 'title element is a child of the body element'
2266
- }
2267
- },
2268
2261
  testaro: {
2269
2262
  titledEl: {
2270
2263
  variable: false,
@@ -4123,13 +4116,6 @@ exports.issueClasses = {
4123
4116
  quality: 1,
4124
4117
  what: 'list item has no ul, ol, or list-role parent or owner'
4125
4118
  }
4126
- },
4127
- nuVal: {
4128
- 'Element li not allowed as child of element div in this context. (Suppressing further errors from this subtree.)': {
4129
- variable: false,
4130
- quality: 1,
4131
- what: 'li element is a child of a div element'
4132
- }
4133
4119
  }
4134
4120
  }
4135
4121
  },
@@ -6021,56 +6007,15 @@ exports.issueClasses = {
6021
6007
  }
6022
6008
  }
6023
6009
  },
6024
- divParentBad: {
6025
- wcag: '1.3.1',
6026
- weight: 4,
6027
- tools: {
6028
- nuVal: {
6029
- 'Element div not allowed as child of element button in this context. (Suppressing further errors from this subtree.)': {
6030
- variable: false,
6031
- quality: 1,
6032
- what: 'div element has a button element as its parent'
6033
- }
6034
- }
6035
- }
6036
- },
6037
- pParentBad: {
6038
- wcag: '1.3.1',
6039
- weight: 4,
6040
- tools: {
6041
- nuVal: {
6042
- 'Element p not allowed as child of element strong in this context. (Suppressing further errors from this subtree.)': {
6043
- variable: false,
6044
- quality: 1,
6045
- what: 'p element has a strong element as its parent'
6046
- }
6047
- }
6048
- }
6049
- },
6050
- styleParentBad: {
6010
+ parentBad: {
6051
6011
  wcag: '1.3.1',
6052
6012
  weight: 4,
6053
6013
  tools: {
6054
6014
  nuVal: {
6055
- 'Element style not allowed as child of element body in this context. (Suppressing further errors from this subtree.)': {
6056
- variable: false,
6057
- quality: 1,
6058
- what: 'style element not allowed as a child of the body element'
6059
- },
6060
- 'Element style not allowed as child of element div in this context. (Suppressing further errors from this subtree.)': {
6061
- variable: false,
6062
- quality: 1,
6063
- what: 'style element not allowed as a child of this div element'
6064
- },
6065
- 'Element style not allowed as child of element main in this context. (Suppressing further errors from this subtree.)': {
6066
- variable: false,
6067
- quality: 1,
6068
- what: 'style element not allowed as a child of this main element'
6069
- },
6070
- 'Element style not allowed as child of element footer in this context. (Suppressing further errors from this subtree.)': {
6071
- variable: false,
6015
+ '^Element .+ not allowed as child of element .+ in this context.*$': {
6016
+ variable: true,
6072
6017
  quality: 1,
6073
- what: 'style element not allowed as a child of this footer element'
6018
+ what: 'Element has an invalid parent'
6074
6019
  }
6075
6020
  }
6076
6021
  }
@@ -6915,11 +6860,6 @@ exports.issueClasses = {
6915
6860
  quality: 1,
6916
6861
  what: 'Element is missing a required child'
6917
6862
  },
6918
- '^Element .+ not allowed as child of element .+ in this context.*$': {
6919
- variable: true,
6920
- quality: 1,
6921
- what: 'Element not allowed as a child of its parent here'
6922
- },
6923
6863
  'Saw <!-- within a comment. Probable cause: Nested comment (not allowed).': {
6924
6864
  variable: false,
6925
6865
  quality: 1,
package/script.js CHANGED
@@ -25,12 +25,12 @@ exports.script = (id, issueClasses, ... issueIDs) => {
25
25
  // For each tool that tests for the issue:
26
26
  const issueToolIDs = Object.keys(issueData.tools);
27
27
  issueToolIDs.forEach(issueToolID => {
28
- // For each of the tests of the tool for the issue:
28
+ // For each of the rules of the tool for the issue:
29
29
  if (! neededTools[issueToolID]) {
30
30
  neededTools[issueToolID] = [];
31
31
  }
32
32
  Object.keys(issueData.tools[issueToolID]).forEach(ruleID => {
33
- // Add data on the test.
33
+ // Add data on the rule.
34
34
  const ruleData = issueData.tools[issueToolID][ruleID];
35
35
  if (issueToolID === 'nuVal') {
36
36
  if (ruleData.variable) {