Comparing version 0.3.0 to 0.3.1
@@ -59,2 +59,10 @@ var http = require('http'), | ||
function matchesDontThrow(el, selector) { | ||
try { | ||
return el.matchesSelector(selector); | ||
} catch (e) { | ||
return false; | ||
} | ||
} | ||
/** | ||
@@ -244,3 +252,3 @@ * Creates a window having a document. The document can be passed as option, | ||
forEach.call(sheet.cssRules, function (ruleSet) { | ||
if (node.matchesSelector(ruleSet.selectorText)) { | ||
if (matchesDontThrow(node, ruleSet.selectorText)) { | ||
forEach.call(ruleSet.style, function (property) { | ||
@@ -247,0 +255,0 @@ cs.setProperty(property, ruleSet.style.getPropertyValue(property), ruleSet.style.getPropertyPriority(property)); |
{ | ||
"name": "jsdom", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "A JavaScript implementation of the W3C DOM", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -279,3 +279,3 @@ # jsdom | ||
level2/html 695/695 100% | ||
level2/style 7/7 100% | ||
level2/style 8/8 100% | ||
level2/extra 4/4 100% | ||
@@ -293,3 +293,3 @@ level2/events 24/24 100% | ||
------------------------------------------------------ | ||
TOTALS: 6/2558 failed; 99% success | ||
TOTALS: 6/2559 failed; 99% success | ||
``` | ||
@@ -296,0 +296,0 @@ |
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
341524
9938