1
0
mirror of https://github.com/django/django.git synced 2025-06-05 03:29:12 +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
# https://html.spec.whatwg.org/#void-elements
VOID_ELEMENTS = {
VOID_ELEMENTS = frozenset(
(
"area",
"base",
"br",
@ -34,7 +35,8 @@ VOID_ELEMENTS = {
# Deprecated tags.
"frame",
"spacer",
}
)
)
@keep_lazy(SafeString)