Skip to content

Commit

Permalink
Add missing tags to allowed empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
theseer committed Aug 29, 2023
1 parent 389ab69 commit ebd7c59
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/serializer/EmptyElementsFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ class EmptyElementsFilter implements Filter {
public function apply(string $content): string {
/** @psalm-var list<string> */
static $tagList = [
'base', 'br', 'meta', 'link', 'img', 'input', 'button', 'hr', 'embed',
'param', 'source', 'track', 'area', 'keygen',
'area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'link',
'meta', 'source', 'track', 'wbr', 'basefont', 'bgsound', 'frame',
'keygen', 'param', 'button'
];

foreach ($tagList as $tag) {
Expand Down

0 comments on commit ebd7c59

Please sign in to comment.