From 7b0a58f9c17f76f9414e0117c86d2bf0e520ba44 Mon Sep 17 00:00:00 2001 From: HypeMC Date: Wed, 26 Apr 2023 02:24:13 +0200 Subject: [PATCH] Mark video tag as inline element --- src/HTML5/Elements.php | 2 +- test/HTML5/ElementsTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HTML5/Elements.php b/src/HTML5/Elements.php index 8fe79878..1632dcfe 100644 --- a/src/HTML5/Elements.php +++ b/src/HTML5/Elements.php @@ -185,7 +185,7 @@ class Elements 'u' => 1, 'ul' => 81, // NORMAL | AUTOCLOSE_P | BLOCK_TAG 'var' => 1, - 'video' => 65, // NORMAL | BLOCK_TAG + 'video' => 1, 'wbr' => 9, // NORMAL | VOID_TAG // Legacy? diff --git a/test/HTML5/ElementsTest.php b/test/HTML5/ElementsTest.php index 08b5ee42..846d5726 100644 --- a/test/HTML5/ElementsTest.php +++ b/test/HTML5/ElementsTest.php @@ -421,7 +421,6 @@ public function testIsA() 'table', 'tfoot', 'ul', - 'video', ); foreach ($blockTags as $tag) { @@ -432,6 +431,7 @@ public function testIsA() 'span', 'img', 'label', + 'video', ); foreach ($nonBlockTags as $tag) { $this->assertFalse(Elements::isA($tag, Elements::BLOCK_TAG), 'Block tag test failed on: ' . $tag);