From 1f7c54478c485335016de33bc799fab44f704cac Mon Sep 17 00:00:00 2001 From: Sam Larkin Date: Tue, 1 Feb 2022 11:58:36 -0700 Subject: [PATCH] update list of self-closing tags Used the list from here https://developer.mozilla.org/en-US/docs/Glossary/Empty_element --- dom.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom.d b/dom.d index 5d4a75a..302f0b5 100644 --- a/dom.d +++ b/dom.d @@ -5582,9 +5582,9 @@ struct DomMutationEvent { private immutable static string[] htmlSelfClosedElements = [ // html 4 - "img", "hr", "input", "br", "col", "link", "meta", + "area","base","br","col","hr","img","input","link","meta","param", // html 5 - "source" ]; + "embed","source","track","wbr" ]; private immutable static string[] htmlInlineElements = [ "span", "strong", "em", "b", "i", "a"