2007-02-04 21:58:38 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Proprietary module that transforms XHTML 1.0 deprecated aspects into
|
|
|
|
* XHTML 1.1 compliant ones, when possible. For maximum effectiveness,
|
|
|
|
* HTMLPurifier_HTMLModule_TransformToStrict must also be loaded
|
|
|
|
* (otherwise, elements that were deprecated from Transitional to Strict
|
|
|
|
* will not be transformed).
|
|
|
|
*
|
|
|
|
* XHTML 1.1 compliant document are automatically XHTML 1.0 compliant too,
|
|
|
|
* although they may not be as friendly to legacy browsers.
|
|
|
|
*/
|
|
|
|
|
|
|
|
class HTMLPurifier_HTMLModule_TransformToXHTML11 extends HTMLPurifier_HTMLModule
|
|
|
|
{
|
|
|
|
|
2007-02-14 22:30:17 +00:00
|
|
|
var $name = 'TransformToXHTML11';
|
2007-02-16 03:01:23 +00:00
|
|
|
var $type = 'redefine';
|
2007-02-12 03:02:26 +00:00
|
|
|
var $attr_collections = array(
|
|
|
|
'Lang' => array(
|
|
|
|
'lang' => false // remove it
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
var $info_attr_transform_post = array(
|
|
|
|
'lang' => false // remove it
|
|
|
|
);
|
2007-02-04 21:58:38 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|