MDL-24650 xhtml strict fix in filter
authorPetr Skoda <skodak@moodle.org>
Wed, 13 Oct 2010 17:29:35 +0000 (17:29 +0000)
committerPetr Skoda <skodak@moodle.org>
Wed, 13 Oct 2010 17:29:35 +0000 (17:29 +0000)
filter/mediaplugin/filter.php

index 838f4cb..ff59cf2 100644 (file)
@@ -176,7 +176,7 @@ function filter_mediaplugin_mp3_callback($link) {
 
     $output = <<<OET
     <span class="mediaplugin mediaplugin_mp3" id="$id"></span>
-    <noscript>
+    <noscript><div>
     <object width="100" height="15" id="nonjsmp3plugin" name="undefined" data="$playerpath" type="application/x-shockwave-flash">
     <param name="movie" value="$playerpath" />
     <param name="allowfullscreen" value="false" />
@@ -195,7 +195,7 @@ function filter_mediaplugin_mp3_callback($link) {
                                            "clip":{"url":"$url",
                                                    "autoPlay": false},
                                            "content":{"url":"$playerpath"}}}' />
-    </object>
+    </div></object>
     </noscript>
 OET;
 
@@ -284,7 +284,7 @@ function filter_mediaplugin_flv_callback($link) {
 
     $output = <<<EOT
     <span class="mediaplugin mediaplugin_flv" id="$id"></span>
-    <noscript>
+    <noscript><div>
     <object width="800" height="600" id="undefined" name="undefined" data="$playerpath" type="application/x-shockwave-flash">
     <param name="movie" value="$playerpath" />
     <param name="allowfullscreen" value="true" />
@@ -292,7 +292,7 @@ function filter_mediaplugin_flv_callback($link) {
     <param name="flashvars" value='config={"clip":{"url":"$url",
                                                    "autoPlay": false},
                                            "content":{"url":"$playerpath"}}}' />
-    </object>
+    </div></object>
   </noscript>
 EOT;