File indexing completed on 2025-01-26 05:29:07
0001 <?php 0002 0003 /** 0004 * Name is deprecated, but allowed in strict doctypes, so onl 0005 */ 0006 class HTMLPurifier_HTMLModule_Tidy_Name extends HTMLPurifier_HTMLModule_Tidy 0007 { 0008 /** 0009 * @type string 0010 */ 0011 public $name = 'Tidy_Name'; 0012 0013 /** 0014 * @type string 0015 */ 0016 public $defaultLevel = 'heavy'; 0017 0018 /** 0019 * @return array 0020 */ 0021 public function makeFixes() 0022 { 0023 $r = array(); 0024 // @name for img, a ----------------------------------------------- 0025 // Technically, it's allowed even on strict, so we allow authors to use 0026 // it. However, it's deprecated in future versions of XHTML. 0027 $r['img@name'] = 0028 $r['a@name'] = new HTMLPurifier_AttrTransform_Name(); 0029 return $r; 0030 } 0031 } 0032 0033 // vim: et sw=4 sts=4