From 2185fea3a450acd689914b3f2374601cb1696713 Mon Sep 17 00:00:00 2001 From: Evan Jacobs Date: Fri, 19 Feb 2016 00:07:37 -0500 Subject: [PATCH] Check for the existence of Attr.nodeName Similar to `Attr.nodeValue`, it's a passthrough to `Attr.name`. --- dom/nodes/attributes.js | 1 + 1 file changed, 1 insertion(+) diff --git a/dom/nodes/attributes.js b/dom/nodes/attributes.js index 096dd5fd7a37f3..ef32bf6a67732c 100644 --- a/dom/nodes/attributes.js +++ b/dom/nodes/attributes.js @@ -6,6 +6,7 @@ function attr_is(attr, v, ln, ns, p, n) { assert_equals(attr.namespaceURI, ns) assert_equals(attr.prefix, p) assert_equals(attr.name, n) + assert_equals(attr.nodeName, n); assert_equals(attr.specified, true) }