From 5b9cfb36daa2547b7477e64e672aa7ab631bf711 Mon Sep 17 00:00:00 2001 From: Geoffrey Sneddon Date: Sun, 22 May 2016 03:26:15 +0100 Subject: [PATCH] Check that no tag in the method dispatcher is duplicated --- html5lib/html5parser.py | 2 +- html5lib/utils.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/html5lib/html5parser.py b/html5lib/html5parser.py index df2a6cf7..daee854c 100644 --- a/html5lib/html5parser.py +++ b/html5lib/html5parser.py @@ -893,7 +893,7 @@ def __init__(self, parser, tree): ("body", self.startTagBody), ("frameset", self.startTagFrameset), (("address", "article", "aside", "blockquote", "center", "details", - "details", "dir", "div", "dl", "fieldset", "figcaption", "figure", + "dir", "div", "dl", "fieldset", "figcaption", "figure", "footer", "header", "hgroup", "main", "menu", "nav", "ol", "p", "section", "summary", "ul"), self.startTagCloseP), diff --git a/html5lib/utils.py b/html5lib/utils.py index ea65ab6b..03f0dab7 100644 --- a/html5lib/utils.py +++ b/html5lib/utils.py @@ -61,6 +61,7 @@ def __init__(self, items=()): else: _dictEntries.append((name, value)) dict.__init__(self, _dictEntries) + assert len(self) == len(_dictEntries) self.default = None def __getitem__(self, key): 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