diff --git a/demo/kitchen-sink/demo.js b/demo/kitchen-sink/demo.js index a9e2c011..a2a7fbc8 100644 --- a/demo/kitchen-sink/demo.js +++ b/demo/kitchen-sink/demo.js @@ -91,7 +91,7 @@ require("ace/multi_select").MultiSelect(env.editor); var consoleEl = dom.createElement("div"); container.parentNode.appendChild(consoleEl); consoleEl.style.cssText = "position:fixed; bottom:1px; right:0;\ -border:1px solid #baf; zIndex:100"; +border:1px solid #baf; z-index:100"; var cmdLine = new layout.singleLineEditor(consoleEl); cmdLine.editor = env.editor; diff --git a/demo/kitchen-sink/util.js b/demo/kitchen-sink/util.js index 337eaeb6..d2e32524 100644 --- a/demo/kitchen-sink/util.js +++ b/demo/kitchen-sink/util.js @@ -205,7 +205,7 @@ exports.fillDropdown = function(el, values) { function elt(tag, attributes, content) { var el = dom.createElement(tag); if (typeof content == "string") { - el.textContent = content; + el.appendChild(document.createTextNode(content)); } else if (content) { content.forEach(function(ch) { el.appendChild(ch); diff --git a/kitchen-sink.html b/kitchen-sink.html index 90f1827e..bb534835 100644 --- a/kitchen-sink.html +++ b/kitchen-sink.html @@ -276,7 +276,7 @@