Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-9942

htmlAREA - uses the innerHTML property to delete child nodes from a parent.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8.1
    • 1.8
    • Libraries
    • None
    • MOODLE_18_STABLE
    • MOODLE_18_STABLE

      On line 1165 of htmlArea.php, htmlarea uses the innerHTML property to remove all the child nodes from the status bar. This can cause a run time error in Internet Explorer 7 in some contexts.

      Will commit the following fix to HEAD shortly -

      1165 this._statusBarTree.innerHTML = HTMLArea.I18N.msg["Path"] + ": ";

      replaced by
      while(this._statusBarTree.childNodes.length>0)

      { this._statusBarTree.removeChild(this._statusBarTree.childNodes[0]); }

      this._statusBarTree.appendChild(document.createTextNode(HTMLArea.I18N.msg["Path"] + ": "));

            scyrma Mathieu Petit-Clair
            anthonyforth Anthony Forth
            Nobody Nobody
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.