Title: Link in code comment no longer relevant for HTML unescaping · Issue #100210 · python/cpython · GitHub
Open Graph Title: Link in code comment no longer relevant for HTML unescaping · Issue #100210 · python/cpython
X Title: Link in code comment no longer relevant for HTML unescaping · Issue #100210 · python/cpython
Description: Documentation The link in cpython/Lib/html/__init__.py Line 28 in 0e081a0 # see http://www.w3.org/TR/html5/syntax.html#tokenizing-character-references is not longer relevant and should be replace: current link http://www.w3.org/TR/html5/...
Open Graph Description: Documentation The link in cpython/Lib/html/__init__.py Line 28 in 0e081a0 # see http://www.w3.org/TR/html5/syntax.html#tokenizing-character-references is not longer relevant and should be replace: ...
X Description: Documentation The link in cpython/Lib/html/__init__.py Line 28 in 0e081a0 # see http://www.w3.org/TR/html5/syntax.html#tokenizing-character-references is not longer relevant and should be replace: ...
Opengraph URL: https://github.com/python/cpython/issues/100210
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Link in code comment no longer relevant for HTML unescaping","articleBody":"# Documentation\r\n\r\nThe link in https://github.com/python/cpython/blob/0e081a089ec969c9a34f5ff25886205616ef4dd3/Lib/html/__init__.py#L28 is not longer relevant and should be replace:\r\n\r\n- current link \u003chttp://www.w3.org/TR/html5/syntax.html#tokenizing-character-references\u003e\r\n- more accurate link \u003chttps://html.spec.whatwg.org/multipage/parsing.html#numeric-character-reference-end-state\u003e\r\n\r\nThe link should explain the source of the replacements table:\r\n\r\n```python\r\n# see http://www.w3.org/TR/html5/syntax.html#tokenizing-character-references\r\n\r\n_invalid_charrefs = {\r\n 0x00: '\\ufffd', # REPLACEMENT CHARACTER\r\n 0x0d: '\\r', # CARRIAGE RETURN\r\n 0x80: '\\u20ac', # EURO SIGN\r\n 0x81: '\\x81', # \u003ccontrol\u003e\r\n 0x82: '\\u201a', # SINGLE LOW-9 QUOTATION MARK\r\n 0x83: '\\u0192', # LATIN SMALL LETTER F WITH HOOK\r\n 0x84: '\\u201e', # DOUBLE LOW-9 QUOTATION MARK\r\n 0x85: '\\u2026', # HORIZONTAL ELLIPSIS\r\n 0x86: '\\u2020', # DAGGER\r\n 0x87: '\\u2021', # DOUBLE DAGGER\r\n 0x88: '\\u02c6', # MODIFIER LETTER CIRCUMFLEX ACCENT\r\n 0x89: '\\u2030', # PER MILLE SIGN\r\n 0x8a: '\\u0160', # LATIN CAPITAL LETTER S WITH CARON\r\n ```\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-100212\n* gh-102044\n* gh-102045\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/jcamiel","@type":"Person","name":"jcamiel"},"datePublished":"2022-12-13T09:07:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/100210/cpython/issues/100210"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7f5a706d-bdec-4808-ddd3-cd98eae1e96a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ACCE:2D0DCE:7D807B:A87D56:696978B6 |
| html-safe-nonce | c8f0e41c7e64fe617050d86634f7ed340684f77de14f951f2432afb95b0c6a01 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0NFOjJEMERDRTo3RDgwN0I6QTg3RDU2OjY5Njk3OEI2IiwidmlzaXRvcl9pZCI6IjEyMTcwNjY5NzYwODUxMTMwMTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bcee6f233cb8155d984c647d7a868cc0c3df7ca899d0aee83aa5d20497b16b61 |
| hovercard-subject-tag | issue:1493771465 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/100210/issue_layout |
| twitter:image | https://opengraph.githubassets.com/90fc54549a68d4dad3117d393bcfd676905a2a6c61f276d4c635c4df20cdd356/python/cpython/issues/100210 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/90fc54549a68d4dad3117d393bcfd676905a2a6c61f276d4c635c4df20cdd356/python/cpython/issues/100210 |
| og:image:alt | Documentation The link in cpython/Lib/html/__init__.py Line 28 in 0e081a0 # see http://www.w3.org/TR/html5/syntax.html#tokenizing-character-references is not longer relevant and should be replace: ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jcamiel |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 212e3e3d3298bf5b313830edfd2399e869f7ea76 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width