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:
parent
f5c340684b
commit
95ae37839c
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user