Skip to content

Commit d71fbc4

Browse files
authored
Merge pull request #232 from HypeMC/video-is-inline
Mark `<video>` tag as inline element
2 parents 3d02e3a + 7b0a58f commit d71fbc4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/HTML5/Elements.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class Elements
185185
'u' => 1,
186186
'ul' => 81, // NORMAL | AUTOCLOSE_P | BLOCK_TAG
187187
'var' => 1,
188-
'video' => 65, // NORMAL | BLOCK_TAG
188+
'video' => 1,
189189
'wbr' => 9, // NORMAL | VOID_TAG
190190

191191
// Legacy?

test/HTML5/ElementsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,6 @@ public function testIsA()
421421
'table',
422422
'tfoot',
423423
'ul',
424-
'video',
425424
);
426425

427426
foreach ($blockTags as $tag) {
@@ -432,6 +431,7 @@ public function testIsA()
432431
'span',
433432
'img',
434433
'label',
434+
'video',
435435
);
436436
foreach ($nonBlockTags as $tag) {
437437
$this->assertFalse(Elements::isA($tag, Elements::BLOCK_TAG), 'Block tag test failed on: ' . $tag);

0 commit comments

Comments
 (0)