You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2022-02-27.14:26:44.874>created_at=<Date2022-02-18.10:23:19.542>labels= ['expert-XML', 'type-feature', '3.11']
title='embed, source, track, wbr HTML elements not considered empty'updated_at=<Date2022-02-27.14:26:44.874>user='https://github.com/jnns'
According to the WHATWG, 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 Firefox 96 shows a warning about an unexpected closing tag 1.
In Python 3.10.2 xml.etree seems to correctly recognize most of them as such and doesn't generate closing tags when using the .tostring() method. A few elements are serialized with a closing tag (<embed></embed> for example).
New changeset 345572a by Jannis Vajen in branch 'main': bpo-46786: Make ElementTree write the HTML tags embed, source, track, wbr as empty tags (GH-31406) 345572a
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: