@qualweb/act-rules 0.0.0-develop-20241227113441 → 0.0.0-develop-20250106132537

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.
@@ -1 +1 @@
1
- {"version":3,"file":"QW-ACT-R50.d.ts","sourceRoot":"","sources":["../../src/rules/QW-ACT-R50.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGrD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,cAAM,UAAW,SAAQ,UAAU;IAEjC,OAAO,CAAC,OAAO,EAAE,SAAS,GAAG,IAAI;IA8BjC,OAAO,CAAC,mBAAmB;CAoB5B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"QW-ACT-R50.d.ts","sourceRoot":"","sources":["../../src/rules/QW-ACT-R50.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGrD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,cAAM,UAAW,SAAQ,UAAU;IAEjC,OAAO,CAAC,OAAO,EAAE,SAAS,GAAG,IAAI;IA8BjC,OAAO,CAAC,mBAAmB;CAuB5B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -47,6 +47,9 @@ class QW_ACT_R50 extends AtomicRule_object_1.AtomicRule {
47
47
  while (rootElement && rootElement.getElementTagName() !== 'body') {
48
48
  rootElement = rootElement.getElementParent();
49
49
  }
50
+ if (!rootElement) {
51
+ return false;
52
+ }
50
53
  const buttons = rootElement.getElements('button');
51
54
  for (const button of buttons || []) {
52
55
  if (button && window.DomUtils.isElementVisible(button) && window.AccessibilityUtils.isElementInAT(button)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qualweb/act-rules",
3
- "version": "0.0.0-develop-20241227113441",
3
+ "version": "0.0.0-develop-20250106132537",
4
4
  "description": "ACT rules module for qualweb web accessibility evaluator",
5
5
  "files": [
6
6
  "dist/*"
@@ -45,10 +45,10 @@
45
45
  "author": "João Vicente",
46
46
  "license": "ISC",
47
47
  "devDependencies": {
48
- "@qualweb/core": "0.0.0-develop-20241227113441",
49
- "@qualweb/locale": "0.0.0-develop-20241227113441",
50
- "@qualweb/qw-page": "0.0.0-develop-20241227113441",
51
- "@qualweb/util": "0.0.0-develop-20241227113441",
48
+ "@qualweb/core": "^0.8.2",
49
+ "@qualweb/locale": "0.2.2",
50
+ "@qualweb/qw-page": "0.3.2",
51
+ "@qualweb/util": "0.6.2",
52
52
  "@tsconfig/recommended": "^1.0.3",
53
53
  "@types/mocha": "^10.0.6",
54
54
  "@types/node": "^16.11.11",