3 require_once 'HTMLPurifier/AttrTransform/Lang.php';
6 * Proprietary module that transforms XHTML 1.0 deprecated aspects into
7 * XHTML 1.1 compliant ones, when possible. For maximum effectiveness,
8 * HTMLPurifier_HTMLModule_TransformToStrict must also be loaded
9 * (otherwise, elements that were deprecated from Transitional to Strict
10 * will not be transformed).
12 * XHTML 1.1 compliant document are automatically XHTML 1.0 compliant too,
13 * although they may not be as friendly to legacy browsers.
16 class HTMLPurifier_HTMLModule_TransformToXHTML11
extends HTMLPurifier_HTMLModule
19 var $name = 'TransformToXHTML11';
20 var $attr_collections = array(
22 'lang' => false // remove it
26 var $info_attr_transform_post = array(
27 'lang' => false // remove it
30 function HTMLPurifier_HTMLModule_TransformToXHTML11() {
31 $this->info_attr_transform_pre
['lang'] = new HTMLPurifier_AttrTransform_Lang();