summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaik Derstappen <md@derico.de>2022-06-24 17:45:48 +0300
committerGitHub <noreply@github.com>2022-06-24 16:45:48 +0200
commit1a7405a1b621b7080450f55f77119bd346cab404 (patch)
treeddcb979c9c6e50dc27461ccfe71c739855fd54c9
parent6fcc2932b1a553833ed0327da4fa4988e7dea33c (diff)
downloadzope-tal-1a7405a1b621b7080450f55f77119bd346cab404.tar.gz
Fix ul-tag not allowed in nav-tag (#18)
Co-authored-by: Michael Howitz <mh@gocept.com>
-rw-r--r--CHANGES.rst3
-rw-r--r--src/zope/tal/htmltalparser.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index dd9d6c5..c5f118d 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -7,6 +7,9 @@
- Add support for Python 3.10.
+- Add ``nav`` to the list of HTML block level elements.
+ (`#18 <https://github.com/zopefoundation/zope.tal/pull/18>`_)
+
4.5 (2021-05-28)
================
diff --git a/src/zope/tal/htmltalparser.py b/src/zope/tal/htmltalparser.py
index fe4b6ca..2c65acd 100644
--- a/src/zope/tal/htmltalparser.py
+++ b/src/zope/tal/htmltalparser.py
@@ -89,7 +89,7 @@ BLOCK_CLOSING_TAG_MAP = {
#: List of HTML tags that denote larger sections than paragraphs.
BLOCK_LEVEL_HTML_TAGS = frozenset([
"blockquote", "table", "tr", "th", "td", "thead", "tfoot", "tbody",
- "noframe", "ul", "ol", "li", "dl", "dt", "dd", "div",
+ "noframe", "ul", "ol", "li", "dl", "dt", "dd", "div", "nav",
])
#: Section level HTML tags