Add %HTML.TargetNoreferrer, which adds rel="noreferrer" when target attribute is set
[htmlpurifier.git] / tests / HTMLPurifier / HTMLModule / NameTest.php
blob6aa2c9957beae60fdd855ae971fa2fe236c19032
1 <?php
3 class HTMLPurifier_HTMLModule_NameTest extends HTMLPurifier_HTMLModuleHarness
6 public function setUp()
8 parent::setUp();
11 public function testBasicUse()
13 $this->config->set('Attr.EnableID', true);
14 $this->assertResult(
15 '<a name="foo">bar</a>'
19 public function testCDATA()
21 $this->config->set('HTML.Attr.Name.UseCDATA', true);
22 $this->assertResult(
23 '<a name="2">Baz</a><a name="2">Bar</a>'
27 public function testCDATAWithHeavyTidy()
29 $this->config->set('HTML.Attr.Name.UseCDATA', true);
30 $this->config->set('HTML.TidyLevel', 'heavy');
31 $this->assertResult('<a name="2">Baz</a>');
36 // vim: et sw=4 sts=4