Whoops, forgot to edit WHATSNEW
[htmlpurifier.git] / library / HTMLPurifier / HTMLModule / Hypertext.php
blob72d7a31e68758ef3c07b185343d0ae34bb49b767
1 <?php
3 /**
4 * XHTML 1.1 Hypertext Module, defines hypertext links. Core Module.
5 */
6 class HTMLPurifier_HTMLModule_Hypertext extends HTMLPurifier_HTMLModule
9 /**
10 * @type string
12 public $name = 'Hypertext';
14 /**
15 * @param HTMLPurifier_Config $config
17 public function setup($config)
19 $a = $this->addElement(
20 'a',
21 'Inline',
22 'Inline',
23 'Common',
24 array(
25 // 'accesskey' => 'Character',
26 // 'charset' => 'Charset',
27 'href' => 'URI',
28 // 'hreflang' => 'LanguageCode',
29 'rel' => new HTMLPurifier_AttrDef_HTML_LinkTypes('rel'),
30 'rev' => new HTMLPurifier_AttrDef_HTML_LinkTypes('rev'),
31 // 'tabindex' => 'Number',
32 // 'type' => 'ContentType',
35 $a->formatting = true;
36 $a->excludes = array('a' => true);
40 // vim: et sw=4 sts=4