Improve handling of malformed object parameters.
commit4d612d5a7730858465fefb22f75d8cec08337e21
authorEdward Z. Yang <ezyang@mit.edu>
Tue, 9 Mar 2010 22:29:38 +0000 (9 17:29 -0500)
committerEdward Z. Yang <ezyang@mit.edu>
Tue, 9 Mar 2010 22:29:38 +0000 (9 17:29 -0500)
tree8fdce8c596d8f4079f110aed8ac60d2cdd3953ab
parent63a854ee5df68249acea44302d2730310d5657d7
Improve handling of malformed object parameters.

When specifying source material for <object> tags, you must use
data inside the object tag as well as specify movie in a param.
If you specify a src (which is the appropriate markup for <embed>)
we now convert and fill in the other attributes appropriately.

Also, fix a PHP warning in Generator code.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
TODO
library/HTMLPurifier/AttrTransform/SafeParam.php
library/HTMLPurifier/Generator.php
library/HTMLPurifier/HTMLModule/SafeObject.php
library/HTMLPurifier/Injector/SafeObject.php
smoketests/preserveYouTube.php