Closed johanfforsberg closed 6 months ago
Hi @johanfforsberg
thank you for reporting the issue. You are correct, handling of div and other elements (which are not void like <input>
, <hr>
, etc.) is incorrect when they don't have any content. I just opened a PR to fix that. I will release the fix today.
Fixed in 0.4.10
Thank you again for reporting the issue :)
Not sure I am understanding things correctly, but it seems that e.g. this code:
results in the second div "b" being nested within the first, "a". This does not happen if I put some children in the divs:
Is this intended behavior? In particular when using HTMX to load things, it makes sense to have elements that are empty at first. I found it pretty confusing to have to put in empty placeholders.