Skip to content

Commit

Permalink
Merge pull request tiff#159 from jslaybaugh/patch-1
Browse files Browse the repository at this point in the history
IE8 'unknown runtime error' when setting 'invalid' html
  • Loading branch information
tiff committed Jul 23, 2012
2 parents 5264e34 + a5a5604 commit e205dbd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/views/composer.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@
if (parse) {
html = this.parent.parse(html);
}
this.element.innerHTML = html;

try {
this.element.innerHTML = html;
}
catch (e) {
this.element.innerText = html;
}
},

show: function() {
Expand Down

0 comments on commit e205dbd

Please sign in to comment.