2007-04-30 21:19:15 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* XHTML 1.1 Target Module, defines target attribute in link elements.
|
|
|
|
*/
|
|
|
|
class HTMLPurifier_HTMLModule_Target extends HTMLPurifier_HTMLModule
|
|
|
|
{
|
|
|
|
|
2007-11-25 02:24:39 +00:00
|
|
|
public $name = 'Target';
|
2007-04-30 21:19:15 +00:00
|
|
|
|
2007-11-29 04:29:51 +00:00
|
|
|
public function __construct() {
|
2007-05-12 20:54:55 +00:00
|
|
|
$elements = array('a');
|
|
|
|
foreach ($elements as $name) {
|
2008-04-23 02:40:17 +00:00
|
|
|
$e = $this->addBlankElement($name);
|
2007-05-12 20:54:55 +00:00
|
|
|
$e->attr = array(
|
2007-04-30 21:19:15 +00:00
|
|
|
'target' => new HTMLPurifier_AttrDef_HTML_FrameTarget()
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|