From 8a0a31a24e0cd5c02496b6d821f46aac3184328e Mon Sep 17 00:00:00 2001 From: Tom Brunet Date: Wed, 13 Nov 2024 09:39:23 -0600 Subject: [PATCH] Bug found by DCS related to list, but cause by prevNode --- .../src/v2/dom/DOMWalker.ts | 2 +- .../dcs-example.html | 47 +++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 accessibility-checker-engine/test/v2/checker/accessibility/rules/list_markup_review_ruleunit/dcs-example.html diff --git a/accessibility-checker-engine/src/v2/dom/DOMWalker.ts b/accessibility-checker-engine/src/v2/dom/DOMWalker.ts index 696815ac1..b910e4225 100644 --- a/accessibility-checker-engine/src/v2/dom/DOMWalker.ts +++ b/accessibility-checker-engine/src/v2/dom/DOMWalker.ts @@ -289,7 +289,7 @@ export class DOMWalker { } } } while ( - (this.node.nodeType !== 1 /* Node.ELEMENT_NODE */ && this.node.nodeType !== 11) + (this.node.nodeType !== 1 /* Node.ELEMENT_NODE */ && this.node.nodeType !== 11 && this.node.nodeType !== 3 ) || (this.node.nodeType === 1 && (this.node as Element).getAttribute("aChecker") === "ACE") ); return true; diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/list_markup_review_ruleunit/dcs-example.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/list_markup_review_ruleunit/dcs-example.html new file mode 100644 index 000000000..5b8d455bf --- /dev/null +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/list_markup_review_ruleunit/dcs-example.html @@ -0,0 +1,47 @@ + + + + + + + + RPT Test Suite + + + +
+
+

Create groups in Turbonomic so you can manage Database Servers with ease. + To create groups, go to Settings > Groups, and then select New Group > Database + Server. In the page that displays, choose Dynamic (recommended) and then set the + filter as follows:

+
+
+ + + +