aboutsummaryrefslogtreecommitdiff
path: root/lib/html-paths.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/html-paths.js')
-rw-r--r--lib/html-paths.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/html-paths.js b/lib/html-paths.js
index 9ecb6dd..d2456c2 100644
--- a/lib/html-paths.js
+++ b/lib/html-paths.js
@@ -41,7 +41,7 @@ function Element(tagName, attributes, options) {
}
Element.prototype.matchesElement = function(element) {
- return this.tagNames[element.tagName];
+ return this.tagNames[element.tagName] && _.isEqual(this.attributes || {}, element.attributes || {});
}