Skip to content

Commit

Permalink
Merge pull request #232 from HypeMC/video-is-inline
Browse files Browse the repository at this point in the history
Mark `<video>` tag as inline element
  • Loading branch information
goetas committed Apr 26, 2023
2 parents 3d02e3a + 7b0a58f commit d71fbc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/HTML5/Elements.php
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
2 changes: 1 addition & 1 deletion test/HTML5/ElementsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,6 @@ public function testIsA()
'table',
'tfoot',
'ul',
'video',
);

foreach ($blockTags as $tag) {
Expand All @@ -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);
Expand Down

0 comments on commit d71fbc4

Please sign in to comment.