summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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