Automatic installer.php lang files by installer_builder (20070726)
[moodle-linuxchix.git] / lib / htmlpurifier / HTMLPurifier / HTMLModule / Hypertext.php
blobbaa20fd14b22641ad9cac5d1aadc3011fcec5362
1 <?php
3 require_once 'HTMLPurifier/HTMLModule.php';
4 require_once 'HTMLPurifier/AttrDef/HTML/LinkTypes.php';
6 /**
7 * XHTML 1.1 Hypertext Module, defines hypertext links. Core Module.
8 */
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(
19 0 => array('Common'),
20 // 'accesskey' => 'Character',
21 // 'charset' => 'Charset',
22 'href' => 'URI',
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);