Comparing version 0.2.7 to 0.2.8
@@ -749,4 +749,7 @@ /* | ||
if (data) { | ||
text += " - More:\n" + data.toString(); | ||
if (data.exception) { | ||
text = data.exception.stack; | ||
} else { | ||
text += ' - More:\n' + data; | ||
} | ||
} | ||
@@ -1004,3 +1007,2 @@ | ||
}; | ||
return; | ||
} | ||
@@ -1007,0 +1009,0 @@ if (this._ownerDocument) { |
{ | ||
"name": "jsdom", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "A javascript implementation of the W3C DOM", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1109,4 +1109,14 @@ var path = require("path"); | ||
test.done(); | ||
}, | ||
issue_335_inline_event_handlers : function(test) { | ||
var doc = jsdom.html('<a onclick="somefunction()">call some function</a>'); | ||
var a = doc.getElementsByTagName('a').item(0); | ||
var onclick = a.getAttribute('onclick'); | ||
test.notEqual(onclick, null); | ||
test.equal(onclick, 'somefunction()'); | ||
test.ok(doc.innerHTML.indexOf('onclick') > -1); | ||
test.done(); | ||
} | ||
}; |
Sorry, the diff of this file is not supported yet
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
33822359
143888
2