3 class HTMLPurifier_HTMLModule_ObjectTest
extends HTMLPurifier_HTMLModuleHarness
6 public function setUp()
9 $this->config
->set('HTML.Trusted', true);
12 public function testDefaultRemoval()
14 $this->config
->set('HTML.Trusted', false);
16 '<object></object>', ''
20 public function testMinimal()
22 $this->assertResult('<object></object>');
25 public function testStandardUseCase()
28 '<object type="video/x-ms-wmv" data="http://domain.com/video.wmv" width="320" height="256">
29 <param name="src" value="http://domain.com/video.wmv" />
30 <param name="autostart" value="false" />
31 <param name="controller" value="true" />
32 <param name="pluginurl" value="http://www.microsoft.com/Windows/MediaPlayer/" />
33 <a href="http://www.microsoft.com/Windows/MediaPlayer/">Windows Media player required</a>