diff --git a/common/framework/filters/htmlfilter.php b/common/framework/filters/htmlfilter.php index c880a2e6a..dcb0c96db 100644 --- a/common/framework/filters/htmlfilter.php +++ b/common/framework/filters/htmlfilter.php @@ -235,6 +235,7 @@ class HTMLFilter 'preload' => 'Enum#auto,metadata,none', 'controls' => 'Bool', 'muted' => 'Bool', + 'autoplay' => 'Bool', 'loop' => 'Bool', )); $def->addElement('video', 'Block', 'Optional: (source, Flow) | (Flow, source) | Flow', 'Common', array( @@ -246,6 +247,7 @@ class HTMLFilter 'preload' => 'Enum#auto,metadata,none', 'controls' => 'Bool', 'muted' => 'Bool', + 'autoplay' => 'Bool', 'loop' => 'Bool', )); $def->addElement('source', 'Block', 'Empty', 'Common', array( diff --git a/tests/unit/framework/filters/HTMLFilterTest.php b/tests/unit/framework/filters/HTMLFilterTest.php index 790b044a6..d51755160 100644 --- a/tests/unit/framework/filters/HTMLFilterTest.php +++ b/tests/unit/framework/filters/HTMLFilterTest.php @@ -69,11 +69,11 @@ class HTMLFilterTest extends \Codeception\TestCase\Test public function testHTMLFilterHTML5() { $source = '
'; - $target = ''; + $target = ''; $this->assertEquals($target, Rhymix\Framework\Filters\HTMLFilter::clean($source)); - $source = ''; - $target = ''; + $source = ''; + $target = ''; $this->assertEquals($target, Rhymix\Framework\Filters\HTMLFilter::clean($source)); $source = '