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

When inserting a MP3 file, the object tag used in the <noscript> is not allowed in that context within the XHTML 1.0 Strict

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.3
    • Fix Version/s: 1.9.5
    • Component/s: Accessibility, Resource
    • Labels:
      None

      Description

      When embedding a MP3 file as a resource, it will create the next code:

      <noscript>
      <object type="audio/mpeg" data="http://127.0.0.1/moodle/file.php/3/Media_examples/world-tour.mp3" width="600" height="70"><param name="src" value="http://127.0.0.1/moodle/file.php/3/Media_examples/world-tour.mp3" /><param name="quality" value="high" /><param name="autoplay" value="true" /><param name="autostart" value="true" /></object>
      <p><a href="http://127.0.0.1/moodle/file.php/3/Media_examples/world-tour.mp3">http://127.0.0.1/moodle/file.php/3/Media_examples/world-tour.mp3</a></p>
      </noscript>

      The <object> tag used can only be inside another tag such as: <div>, <p>, <h1>, ...

      This can be seen in: http://demo.moodle.org/mod/resource/view.php?id=234

      The easiest way to solve it is to embed the object tag in a <div> tag, such as:
      <noscript>
      <div>
      <object type="audio/mpeg" data="http://127.0.0.1/moodle/file.php/3/Media_examples/world-tour.mp3" width="600" height="70"><param name="src" value="http://127.0.0.1/moodle/file.php/3/Media_examples/world-tour.mp3" /><param name="quality" value="high" /><param name="autoplay" value="true" /><param name="autostart" value="true" /></object>
      </div>
      <p><a href="http://127.0.0.1/moodle/file.php/3/Media_examples/world-tour.mp3">http://127.0.0.1/moodle/file.php/3/Media_examples/world-tour.mp3</a></p>
      </noscript>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dongsheng Dongsheng Cai
              Reporter:
              david.horat David Horat
              Tester:
              David Horat David Horat
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/May/09