3 class HTMLPurifier_HTMLModule_NameTest
extends HTMLPurifier_HTMLModuleHarness
10 function testBasicUse() {
11 $this->config
->set('Attr.EnableID', true);
13 '<a name="foo">bar</a>'
17 function testCDATA() {
18 $this->config
->set('HTML.Attr.Name.UseCDATA', true);
20 '<a name="2">Baz</a><a name="2">Bar</a>'
24 function testCDATAWithHeavyTidy() {
25 $this->config
->set('HTML.Attr.Name.UseCDATA', true);
26 $this->config
->set('HTML.TidyLevel', 'heavy');
27 $this->assertResult('<a name="2">Baz</a>');