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

trivial invalid html (typo) in mod_scorm causes countdown error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.8, 2.6.5, 2.7, 2.8
    • Fix Version/s: 2.6.6, 2.7.2
    • Component/s: SCORM
    • Labels:

      Description

      This is a trivial html error/type, where </p> was entered as <p>.
      In loadSCO.php, the redirect has a timer showing how many seconds until redirect, which prints essentially this:

          <p>Loading ... <span id='countdown'>XX</span> seconds<p>
      

      The "/" missing from the close tag causes a Javascript error in IE in the two lines that follow the type:

                  var e = document.getElementById("countdown");
                  var cSeconds = parseInt(e.innerHTML);
      

      FYI to Dan and Vignesh - I have several more issues coming your way next week, including some significant regressions. I have fixes in place, I just need to get them cleaned up, committed to Github, tests written where appropriate, etc.

        Attachments

          Activity

            People

            Assignee:
            raymor Ray Morris
            Reporter:
            raymor Ray Morris
            Peer reviewer:
            Dan Marsden
            Integrator:
            Marina Glancy
            Tester:
            Rajesh Taneja
            Participants:
            Component watchers:
            Damyon Wiese, Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              8/Sep/14