diff --git a/configdoc/usage.xml b/configdoc/usage.xml index c0d47081..beab30c2 100644 --- a/configdoc/usage.xml +++ b/configdoc/usage.xml @@ -410,7 +410,7 @@ - 105 + 109 diff --git a/library/HTMLPurifier/HTMLModule/SafeScripting.php b/library/HTMLPurifier/HTMLModule/SafeScripting.php index 0330cd97..93d0966f 100644 --- a/library/HTMLPurifier/HTMLModule/SafeScripting.php +++ b/library/HTMLPurifier/HTMLModule/SafeScripting.php @@ -23,7 +23,7 @@ class HTMLPurifier_HTMLModule_SafeScripting extends HTMLPurifier_HTMLModule $script = $this->addElement( 'script', 'Inline', - 'Empty', + 'Optional:', // Not `Empty` to not allow to autoclose the ' + ); + } + + public function testGoodWithAutoclosedTag() + { + $this->assertResult( + '' ); }