Comparing version 1.8.0 to 1.8.1
@@ -66,9 +66,7 @@ (function(chaiDom) { | ||
isHTMLElement = function(el) { | ||
return el.nodeType === window.Node.ELEMENT_NODE; | ||
return el.nodeType === 1 // window.Node.ELEMENT_NODE | ||
}, | ||
NODE_LIST_STRING = Object.prototype.toString.call(document.childNodes), | ||
isNodeList = function(obj) { | ||
return Object.prototype.toString.call(obj) === NODE_LIST_STRING; | ||
return Object.prototype.toString.call(obj) === '[object NodeList]' | ||
} | ||
@@ -222,3 +220,3 @@ | ||
if (isNodeList(obj) || isHTMLElement(obj)) { | ||
var actualLength = obj.children ? obj.children.length : obj.length; | ||
var actualLength = obj.children ? obj.children.length : obj.length | ||
this.assert( | ||
@@ -225,0 +223,0 @@ actualLength === length |
@@ -16,3 +16,3 @@ { | ||
], | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"repository": { | ||
@@ -19,0 +19,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54938
1056