3 require_once 'HTMLPurifier/HTMLModule.php';
4 require_once 'HTMLPurifier/AttrDef/HTML/LinkTypes.php';
7 * XHTML 1.1 Hypertext Module, defines hypertext links. Core Module.
9 class HTMLPurifier_HTMLModule_Hypertext
extends HTMLPurifier_HTMLModule
12 var $name = 'Hypertext';
13 var $elements = array('a');
14 var $content_sets = array('Inline' => 'a');
16 function HTMLPurifier_HTMLModule_Hypertext() {
17 $this->info
['a'] = new HTMLPurifier_ElementDef();
18 $this->info
['a']->attr
= array(
20 // 'accesskey' => 'Character',
21 // 'charset' => 'Charset',
23 //'hreflang' => 'LanguageCode',
24 'rel' => new HTMLPurifier_AttrDef_HTML_LinkTypes('rel'),
25 'rev' => new HTMLPurifier_AttrDef_HTML_LinkTypes('rev'),
26 //'tabindex' => 'Number',
27 //'type' => 'ContentType',
29 $this->info
['a']->content_model
= '#PCDATA | Inline';
30 $this->info
['a']->content_model_type
= 'optional';
31 $this->info
['a']->excludes
= array('a' => true);