Remove the type attribute when we remove the data attribute to avoid 
problems in Firefox.

        Patch by fu. 

diffs (15 lines):

diff -r fd79f3fbf5de -r ea1623701681 cgi-bin/LJ/CleanHTML.pm
--- a/cgi-bin/LJ/CleanHTML.pm   Fri Apr 08 19:14:55 2011 +0800
+++ b/cgi-bin/LJ/CleanHTML.pm   Fri Apr 08 21:14:26 2011 +0800
@@ -657,6 +657,11 @@ sub clean
 
                     if ( $attr eq "data" ) {
                         delete $hash->{$attr};
+
+                        # type specifies the content type for the data 
specified by "data"
+                        # without the data, this has no useful effect
+                        # but may cause the object tag not to use the fallback 
values in Firefox
+                        delete $hash->{"type"};
                         next;
                     }
 
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to