diff options
author | Maik Derstappen <md@derico.de> | 2022-06-24 17:45:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-24 16:45:48 +0200 |
commit | 1a7405a1b621b7080450f55f77119bd346cab404 (patch) | |
tree | ddcb979c9c6e50dc27461ccfe71c739855fd54c9 | |
parent | 6fcc2932b1a553833ed0327da4fa4988e7dea33c (diff) | |
download | zope-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.rst | 3 | ||||
-rw-r--r-- | src/zope/tal/htmltalparser.py | 2 |
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 |