commit 59b9f5accb47b80cf04ef1496046a25639d00a9f
parent 48befa3950071cf5962845b82b3aad7fcb5de2d8
Author: Eitan Isaacson <eitan@monotonous.org>
Date: Tue, 18 Nov 2025 17:49:29 +0000
Bug 2000347 - Fix intermittent relations test failure. r=morgan
It looks like the non-closed tags causes the parser to put the whitespace in different parts of the tree. Since there can be a mutation outside of the label element subtree, we get a reorder event instead of an expected inner reorder event. Writing the markup properly here fixes this.
Differential Revision: https://phabricator.services.mozilla.com/D273064
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/accessible/tests/browser/relations/browser_relations_general_002.js b/accessible/tests/browser/relations/browser_relations_general_002.js
@@ -155,7 +155,8 @@ addAccessibleTask(
`
<input id="d"></input>
<label id="l">
- <select id="s">
+ <select id="s"></select>
+ </label>
`,
async function (browser, accDoc) {
const label = findAccessibleChildByID(accDoc, "l");