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=Nonecreated_at=<Date2019-11-08.16:09:16.183>labels= ['3.8', '3.9', 'invalid', '3.7', 'library', 'docs']
title='HTML5 named character references not consistent'updated_at=<Date2019-11-09.02:17:40.258>user='https://bugs.python.org/mikeraider'
The peculiarities in the dict keys reflect peculiarities in the standard. For instance, msg163706 of bpo-11113 says "the standard allows some charref to end without a ';', but not all of them."
I am leaving this open to add a link to the source file both in entities.py and the doc. It shows examples of the entities. A new one for me is smashp; U+02A33 ⨳.
Activity
mikeraider commented on Nov 8, 2019
In the file
cpython/blob/master/Lib/html/entities.py
the HTML5 named character references (line 264) do not look consistent.
Some references have a semicolon at the end, some not, and some have both variants.
Is there a reason for this?
terryjreedy commented on Nov 9, 2019
Questions should usually be asked on python-list or elsewhere.
To answer, html5 was created from
https://html.spec.whatwg.org/multipage/named-characters.html
with these issues and patches.
bpo-11113 dc44f55
518dbfd
bpo-16245 e6e96ee
The peculiarities in the dict keys reflect peculiarities in the standard. For instance, msg163706 of bpo-11113 says "the standard allows some charref to end without a ';', but not all of them."
I am leaving this open to add a link to the source file both in entities.py and the doc. It shows examples of the entities. A new one for me is smashp; U+02A33 ⨳.
ezio-melotti commented on May 6, 2022
Fixed! Thanks @slateny for the PR!
gh-82927: Update files related to HTML entities. (GH-92504)
Revert 30935 defer bpo45162 to 312 (#94285)