Closed nilshoerrmann closed 7 months ago
When parsing this picture element taken from MDN, the source element will not be treated as void element but closed instead:
picture
source
<picture> <source srcset="/media/cc0-images/surfer-240-200.jpg" media="(orientation: portrait)" /> <img src="/media/cc0-images/painted-hand-298-332.jpg" alt="" /> </picture>
This will become:
<picture> <source srcset="/media/cc0-images/surfer-240-200.jpg" media="(orientation: portrait)"></source> <img src="/media/cc0-images/painted-hand-298-332.jpg" alt=""> </picture>
The expected output would be:
<picture> <source srcset="/media/cc0-images/surfer-240-200.jpg" media="(orientation: portrait)"> <img src="/media/cc0-images/painted-hand-298-332.jpg" alt=""> </picture>
This must have been an issue in my codebase as I cannot reproduce the issue anymore.
When parsing this
picture
element taken from MDN, thesource
element will not be treated as void element but closed instead:This will become:
The expected output would be: