GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — HTML5 named character references not consistent · Issue #82927 · python/cpython

HTML5 named character references not consistent #82927

New issue
Copy link
New issue
Copy link
Closed
Closed
HTML5 named character references not consistent#82927
Copy link
Assignees
ezio-melotti
Labels
3.7 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of lifedocsDocumentation in the Doc dirDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory

Description

mikeraider
mannequin
opened on Nov 8, 2019
Issue body actions
BPO 38746
Nosy @terryjreedy, @ezio-melotti

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 = None
closed_at = None
created_at = <Date 2019-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 = <Date 2019-11-09.02:17:40.258>
user = 'https://bugs.python.org/mikeraider'

bugs.python.org fields:

activity = <Date 2019-11-09.02:17:40.258>
actor = 'terry.reedy'
assignee = 'docs@python'
closed = False
closed_date = None
closer = None
components = ['Documentation', 'Library (Lib)']
creation = <Date 2019-11-08.16:09:16.183>
creator = 'mikeraider'
dependencies = []
files = []
hgrepos = []
issue_num = 38746
keywords = []
message_count = 2.0
messages = ['356246', '356282']
nosy_count = 4.0
nosy_names = ['terry.reedy', 'ezio.melotti', 'docs@python', 'mikeraider']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'needs patch'
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue38746'
versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

Activity

  1. mikeraider commented on Nov 8, 2019

    @mikeraider
    mikeraidermannequin
    on Nov 8, 2019
    MannequinAuthor
    More actions

    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?

  2. mikeraider
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Nov 8, 2019
  3. terryjreedy commented on Nov 9, 2019

    @terryjreedy
    terryjreedy
    on Nov 9, 2019
    Member
    More actions

    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 ⨳.

  4. terryjreedy
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    3.7 (EOL)end of lifeend of life
    3.8 (EOL)end of lifeend of life
    3.9 (EOL)end of lifeend of life
    invalid
    on Nov 9, 2019
  5. terryjreedy
    assigned
    docspython
    on Nov 9, 2019
  6. ezio-melotti
    transferred this issue fromon Apr 10, 2022
  7. ezio-melotti
    self-assigned this
    on May 6, 2022
  8. ezio-melotti commented on May 6, 2022

    @ezio-melotti
    ezio-melotti
    on May 6, 2022
    Member
    More actions

    Fixed! Thanks @slateny for the PR!

  9. ezio-melotti
    closed this as completedon May 6, 2022
  10. ambv
    added a commit that references this issue on Jun 21, 2022

    gh-82927: Update files related to HTML entities. (GH-92504)

    f28ec34
  11. ezio-melotti
    added this to html.parser issueson Jun 22, 2022
  12. ezio-melotti
    moved this to Done in html.parser issueson Jun 22, 2022
  13. serhiy-storchaka
    added a commit that references this issue on Jun 26, 2022

    Revert 30935 defer bpo45162 to 312 (#94285)

    1ffde3e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @ezio-melotti
    ezio-melotti

Labels

3.7 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of lifedocsDocumentation in the Doc dirDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory

Projects

  • html.parser issues
    Status
    Done
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.