3 class HTMLPurifier_HTMLModule_NameTest
extends HTMLPurifier_HTMLModuleHarness
6 public function setUp()
11 public function testBasicUse()
13 $this->config
->set('Attr.EnableID', true);
15 '<a name="foo">bar</a>'
19 public function testCDATA()
21 $this->config
->set('HTML.Attr.Name.UseCDATA', true);
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>');