~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/console/media/console.js

  • Committer: William Grant
  • Date: 2009-03-25 11:25:11 UTC
  • Revision ID: grantw@unimelb.edu.au-20090325112511-vmrk9h2kmy9dupqo
Replace all uses of .textContent with .nodeValue.

.nodeValue is more correct (we don't actually want to accidentally be
silently clobbering all children), and .textContent is DOM Level 3,
which is like so only 5 years ago, which means IE8 doesn't support it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
270
270
        var span = document.createElement("span");
271
271
        span.setAttribute("class", "inputPrompt");
272
272
        span.appendChild(document.createTextNode(
273
 
              document.getElementById("console_prompt").firstChild.textContent)
 
273
              document.getElementById("console_prompt").firstChild.nodeValue)
274
274
                        );
275
275
        output.appendChild(span);
276
276
        // Print input line itself in a span