voku/HtmlMin

Unnecessary source closing tag

pan-tom opened this issue · 1 comments

What is this feature about (expected vs actual behaviour)?

Without </source>

How can I reproduce it?

Try to minify:

$html = "\r\n
\t<source src="horse.ogg" type="audio/ogg">\r\n
\t<source src="horse.mp3" type="audio/mpeg">\r\n
\tYour browser does not support the audio element.\r\n
";

It produces additional </source> tags:

<audio controls><source src=horse.ogg type=audio/ogg><source src=horse.mp3 type=audio/mpeg> Your browser does not support the audio element. </source></source></audio>

voku commented

Thanks for the bug report. It's fixed in version 4.0.1.

PS: same problem was fixed for "picture" & "video" tags

Happy coding!