From 04d0677a8b580826bd01b1600bf2eeed6c7da2b7 Mon Sep 17 00:00:00 2001 From: prns <77806190+prnss@users.noreply.github.com> Date: Sat, 2 Dec 2023 18:30:40 +0000 Subject: [PATCH] Update elements --- domify/html_elements.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/domify/html_elements.py b/domify/html_elements.py index 16f8ad6..641795a 100644 --- a/domify/html_elements.py +++ b/domify/html_elements.py @@ -376,7 +376,7 @@ class Details(HtmlElement): Disclosure control for hiding details """ - element_attributes = {"open": v.attribute_bool} + element_attributes = {"name": v.attribute_str, "open": v.attribute_bool} class Dfn(HtmlElement): @@ -1093,6 +1093,10 @@ class Template(HtmlElement): """ is_empty = True + element_attributes = { + "shadowrootmode": {"open", "closed"}, + "shadowrootdelegatesfocus": v.attribute_bool, + } class Textarea(HtmlElement):