-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start tag of empty head
element is not omitted
#43
Comments
Can you please clarify actual/expected with code? Thanks |
The actual output is a redundant start tag:
The expected output is an empty string:
|
Did you see the end of the section you linked to?
Your empty document is not conforming: you need to have a |
It is, when used as an |
and is that what you’re doing? that seems unlikely 😅 |
released in 9.0.3! |
Initial checklist
Affected packages and versions
hast-util-to-html@9.0.2
Link to runnable example
No response
Steps to reproduce
Run the code below.
Expected behavior
Empty output. The start tag of the
head
element is omitted because the element is empty.Actual behavior
The output is
<head>
.Affected runtime and version
node@22.8.0
Affected package manager and version
npm@10.8.3
Affected OS and version
No response
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered: