From cfbfb5c60d819f3ff75e32082cb1e95df58f821d Mon Sep 17 00:00:00 2001 From: Hannes Date: Wed, 15 May 2024 09:18:50 +0800 Subject: [PATCH] Remove XHTML compatibility --- src/Html.roc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Html.roc b/src/Html.roc index af7c60b..af2be55 100644 --- a/src/Html.roc +++ b/src/Html.roc @@ -257,7 +257,7 @@ expect expect exampleDocument = html [] [body [] [base [], link [], meta [], embed [], source [], input [], area [], img [], track [], br [], wbr [], col [], hr []]] out = render exampleDocument - out == "

" + out == "

" ## Render a Node to a string, without a `!DOCTYPE` tag. renderWithoutDocType : Node -> Str @@ -289,7 +289,7 @@ renderHelp = \buffer, node -> withTagName else List.walk attrs withTagName renderAttr - |> SafeStr.concat (dangerouslyMarkSafe "/>") # Use self-closing tag syntax for compatibility with XHTML + |> SafeStr.concat (dangerouslyMarkSafe ">") # Don't use self-closing tag syntax for void elements _ -> buffer