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
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_19_STABLE
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>
Addressing for 1.9.4 and assigning to Dongsheg too (it's the multimedia filter if I'm not wrong, Dong). Not sure.