Skip to content

Commit

Permalink
Bug found by DCS related to list, but cause by prevNode (#2094)
Browse files Browse the repository at this point in the history
Co-authored-by: Shunguo Yan <[email protected]>
  • Loading branch information
tombrunet and shunguoy committed Dec 3, 2024
1 parent 65e6cf6 commit f32af03
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
2 changes: 1 addition & 1 deletion accessibility-checker-engine/src/v2/dom/DOMWalker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<!--
/******************************************************************************
Copyright:: 2020- IBM, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*****************************************************************************/
-->

<html lang="en">

<head>
<title>RPT Test Suite</title>
</head>

<body>
<main>
<div>
<p id="debug1">Create groups in <span class="ph">Turbonomic</span> so you can manage Database Servers with ease.
To create groups, go to <strong>Settings &gt; Groups</strong>, and then select <strong>New Group &gt; Database
Server</strong>. In the page that displays, choose <strong>Dynamic</strong> (recommended) and then set the
filter as follows:</p>
</div>
</main>

<script type="text/javascript">
UnitTest = {
ruleIds: ["list_markup_review"],
results: [

]
};
//]]>
</script></body>

</html>

0 comments on commit f32af03

Please sign in to comment.