diff --git a/lib/jasmine-core/jasmine-html.js b/lib/jasmine-core/jasmine-html.js index 3b1ec6f07..61191dc62 100644 --- a/lib/jasmine-core/jasmine-html.js +++ b/lib/jasmine-core/jasmine-html.js @@ -150,7 +150,7 @@ jasmineRequire.HtmlReporter = function(j$) { type: 'checkbox' }) )); - var checkbox = find('input'); + var checkbox = find('#raise-exceptions'); checkbox.checked = !env.catchingExceptions(); checkbox.onclick = onRaiseExceptionsClick; diff --git a/src/html/HtmlReporter.js b/src/html/HtmlReporter.js index f55c88caa..e00010c4a 100644 --- a/src/html/HtmlReporter.js +++ b/src/html/HtmlReporter.js @@ -121,7 +121,7 @@ jasmineRequire.HtmlReporter = function(j$) { type: 'checkbox' }) )); - var checkbox = find('input'); + var checkbox = find('#raise-exceptions'); checkbox.checked = !env.catchingExceptions(); checkbox.onclick = onRaiseExceptionsClick;