We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2cd547 commit ebffdb9Copy full SHA for ebffdb9
index.html.erb
@@ -7,9 +7,7 @@
7
window.onerror = function(msg, url, line) {
8
var error = document.createElement("div");
9
error.setAttribute("id", "rspec-error");
10
- error.innerHTML = "Error: " + msg + "<br/>";
11
- error.innerHTML += "Line: " + line + "<br/>";
12
- error.innerHTML += "URL: " + url + "<br/>";
+ error.appendChild(document.createTextNode(msg));
13
14
document.body.appendChild(error);
15
}
0 commit comments