Skip to content

Commit 19232e5

Browse files
Marcy Suttonmarcysutton
authored andcommitted
fix: adjust aria-errormessage for the 2x branch
1 parent dc45d60 commit 19232e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/checks/aria/errormessage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ options = Array.isArray(options) ? options : [];
33
var attr = node.getAttribute('aria-errormessage'),
44
hasAttr = node.hasAttribute('aria-errormessage');
55

6-
var doc = axe.commons.dom.getRootNode(node);
6+
var doc = document;
77

88
function validateAttrValue() {
99
var idref = attr && doc.getElementById(attr);

0 commit comments

Comments
 (0)