Skip to content

Commit 063ca52

Browse files
authored
Merge pull request paquettg#86 from Cojad/master
update with full list html5 self closing tags
2 parents 48fe89f + e1a61e4 commit 063ca52

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/PHPHtmlParser/Dom.php

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,23 @@ class Dom
7979
* @var array
8080
*/
8181
protected $selfClosing = [
82-
'img',
82+
'area',
83+
'base',
84+
'basefont',
8385
'br',
86+
'col',
87+
'embed',
88+
'hr',
89+
'img',
8490
'input',
85-
'meta',
91+
'keygen',
8692
'link',
87-
'hr',
88-
'base',
89-
'embed',
93+
'meta',
94+
'param',
95+
'source',
9096
'spacer',
97+
'track',
98+
'wbr'
9199
];
92100

93101
/**

0 commit comments

Comments
 (0)