1
0
mirror of https://github.com/django/django.git synced 2025-08-16 14:59:27 +00:00

Refs #30686 -- Made django.utils.html.VOID_ELEMENTS a frozenset.

This commit is contained in:
Nick Pope 2024-03-14 04:56:22 +00:00 committed by GitHub
parent f5c340684b
commit 95ae37839c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,8 @@ from django.utils.safestring import SafeData, SafeString, mark_safe
from django.utils.text import normalize_newlines from django.utils.text import normalize_newlines
# https://html.spec.whatwg.org/#void-elements # https://html.spec.whatwg.org/#void-elements
VOID_ELEMENTS = { VOID_ELEMENTS = frozenset(
(
"area", "area",
"base", "base",
"br", "br",
@ -34,7 +35,8 @@ VOID_ELEMENTS = {
# Deprecated tags. # Deprecated tags.
"frame", "frame",
"spacer", "spacer",
} )
)
@keep_lazy(SafeString) @keep_lazy(SafeString)