You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I may be missing some mechanism in the current library, but while trying to recreate some existing HTML5, I ran into the following roadblocks (for non-XML HTML5 syntax oddities):
Equals-signs in attribute values are auto-escaped, which means I can't generate, e.g., content="width=device-width, initial-scale=1".
Attributes must have values, which means I can't generate, e.g., <script defer …>.
Tags are always closed (either empty or with a closing tag), which means I can't generate, e.g., <meta charset="utf-8">.
Now, it may be that the more XML-friendly 'width=device-width …', defer="" and <meta …/> are just fine HTML5-wise – so permitting stuff light this might just add unnecessary complication? ¯_(ツ)_/¯
(BTW, for the value-less attributes, I tested using defer=nothing – a solution I've used myself in similar situations, but that seems to have broken the rendering completely, including for the following attributes.)
The text was updated successfully, but these errors were encountered:
I may be missing some mechanism in the current library, but while trying to recreate some existing HTML5, I ran into the following roadblocks (for non-XML HTML5 syntax oddities):
content="width=device-width, initial-scale=1"
.<script defer …>
.<meta charset="utf-8">
.Now, it may be that the more XML-friendly
'width=device-width …'
,defer=""
and<meta …/>
are just fine HTML5-wise – so permitting stuff light this might just add unnecessary complication? ¯_(ツ)_/¯(BTW, for the value-less attributes, I tested using
defer=nothing
– a solution I've used myself in similar situations, but that seems to have broken the rendering completely, including for the following attributes.)The text was updated successfully, but these errors were encountered: