3 class HTMLPurifier_HTMLModule_ScriptingTest
extends HTMLPurifier_HTMLModuleHarness
8 $this->config
->set('HTML.Trusted', true);
9 $this->config
->set('Output.CommentScriptContents', false);
12 function testDefaultRemoval() {
13 $this->config
->set('HTML.Trusted', false);
15 '<script type="text/javascript">foo();</script>', ''
19 function testPreserve() {
21 '<script type="text/javascript">foo();</script>'
25 function testCDATAEnclosure() {
27 '<script type="text/javascript">//<![CDATA[
28 alert("<This is compatible with XHTML>");
33 function testAllAttributes() {
38 type="text/javascript"
43 function testUnsupportedAttributes() {
46 type="text/javascript"
49 '<script type="text/javascript">PCDATA</script>'