From a8a8bc7b56a02b33ebe8fa5a988e24b1903887d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Langa?= Date: Thu, 2 Mar 2023 15:31:34 +0100 Subject: [PATCH 1/2] Sort void elements alphabetically, document ones that don't match current standard --- html5lib/constants.py | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/html5lib/constants.py b/html5lib/constants.py index 11184e0d..cbdfb49e 100644 --- a/html5lib/constants.py +++ b/html5lib/constants.py @@ -557,24 +557,36 @@ ) voidElements = frozenset([ + "area", "base", - "command", - "event-source", - "link", - "meta", - "hr", "br", - "img", - "embed", - "param", - "area", "col", + "command", # removed ^1 + "embed", + "event-source", # renamed and later removed ^2 + "hr", + "img", "input", + "link", + "meta", + "param", # deprecated ^3 "source", "track", "wbr", ]) +# Removals and deprecations in the HTML 5 spec: +# ^1: command +# http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-December/038472.html +# https://github.com/whatwg/html/commit/9e2e25f4ae90969a7c64e0763c98548a35b50af8 +# ^2: event-source +# renamed to eventsource in 7/2008: +# https://github.com/whatwg/html/commit/d157945d0285b4463a04b57318da0c4b300a99e7 +# removed entirely in 2/2009: +# https://github.com/whatwg/html/commit/43cbdbfbb7eb74b0d65e0f4caab2020c0b2a16ff +# ^3: param +# https://developer.mozilla.org/en-US/docs/Web/HTML/Element/param + cdataElements = frozenset(['title', 'textarea']) rcdataElements = frozenset([ From 77c909bb54ef312e72ee1c5a3868ec713964adf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Langa?= Date: Thu, 2 Mar 2023 15:37:05 +0100 Subject: [PATCH 2/2] Appease trailing whitespace gods --- html5lib/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html5lib/constants.py b/html5lib/constants.py index cbdfb49e..e83bfb5d 100644 --- a/html5lib/constants.py +++ b/html5lib/constants.py @@ -577,7 +577,7 @@ # Removals and deprecations in the HTML 5 spec: # ^1: command -# http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-December/038472.html +# http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-December/038472.html # https://github.com/whatwg/html/commit/9e2e25f4ae90969a7c64e0763c98548a35b50af8 # ^2: event-source # renamed to eventsource in 7/2008: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy