Skip to content

Commit

Permalink
[runmode addon] Treat everything with an appendChild property as a DO…
Browse files Browse the repository at this point in the history
…M output node

Closes #3703
  • Loading branch information
marijnh committed Dec 15, 2015
1 parent 188ae75 commit 7e35f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/runmode/runmode.js
Expand Up @@ -16,7 +16,7 @@ CodeMirror.runMode = function(string, modespec, callback, options) {
var ie = /MSIE \d/.test(navigator.userAgent);
var ie_lt9 = ie && (document.documentMode == null || document.documentMode < 9);

if (callback.nodeType == 1) {
if (callback.appendChild) {
var tabSize = (options && options.tabSize) || CodeMirror.defaults.tabSize;
var node = callback, col = 0;
node.innerHTML = "";
Expand Down

0 comments on commit 7e35f03

Please sign in to comment.