[issue46786] embed, source, track, wbr HTML elements not considered empty

2022-02-18 Thread jnns
Change by jnns : -- keywords: +patch pull_requests: +29546 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31406 ___ Python tracker <https://bugs.python.org/issu

[issue46786] embed, source, track, wbr HTML elements not considered empty

2022-02-18 Thread jnns
New submission from jnns : [According to the WHATWG][1], the elements `area`, `base`, `br`, `col`, `embed`, `hr`, `img`, `input`, `link`, `meta`, `param`, `source`, `track`, `wbr` are *void elements* that don't need and therefore shouldn't have a closing tag. The source view of