Skip to content

Commit

Permalink
Wrapped the reserved word, "for", in quotes.
Browse files Browse the repository at this point in the history
This stops it throwing errors in IE and other browsers. I think the newer Firefox and Chrome versions are the only browsers to not die when running it.
  • Loading branch information
Olical committed Aug 15, 2012
1 parent 06c900a commit ea2ffb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jasmine-core/jasmine-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ jasmine.HtmlReporter = function(_doc) {
dom.symbolSummary = self.createDom('ul', {className: 'symbolSummary'}),
dom.alert = self.createDom('div', {className: 'alert'},
self.createDom('span', { className: 'exceptions' },
self.createDom('label', { className: 'label', for: 'no_try_catch' }, 'No try/catch'),
self.createDom('label', { className: 'label', 'for': 'no_try_catch' }, 'No try/catch'),
self.createDom('input', { id: 'no_try_catch', type: 'checkbox' }))),
dom.results = self.createDom('div', {className: 'results'},
dom.summary = self.createDom('div', { className: 'summary' }),
Expand Down

0 comments on commit ea2ffb7

Please sign in to comment.