3 require_once 'HTMLPurifier/AttrDef/Nmtokens.php';
4 require_once 'HTMLPurifier/AttrDef/Text.php';
5 require_once 'HTMLPurifier/AttrDef/ID.php';
6 require_once 'HTMLPurifier/AttrDef/URI.php';
9 * Provides lookup array of attribute types to HTMLPurifier_AttrDef objects
11 class HTMLPurifier_AttrTypes
14 * Lookup array of attribute string identifiers to concrete implementations
20 * Constructs the info array
22 function HTMLPurifier_AttrTypes() {
23 $this->info
['NMTOKENS'] = new HTMLPurifier_AttrDef_Nmtokens();
24 $this->info
['CDATA'] = new HTMLPurifier_AttrDef_Text();
25 $this->info
['Text'] = new HTMLPurifier_AttrDef_Text();
26 $this->info
['ID'] = new HTMLPurifier_AttrDef_ID();
27 $this->info
['URI'] = new HTMLPurifier_AttrDef_URI();
28 $this->info
['Pixels'] = new HTMLPurifier_AttrDef_Pixels();
29 $this->info
['Length'] = new HTMLPurifier_AttrDef_Length();
30 $this->info
['MultiLength'] = new HTMLPurifier_AttrDef_MultiLength();
31 // number is really a positive integer, according to XML one or
33 $this->info
['Number'] = new HTMLPurifier_AttrDef_Integer(false, false, true);