Skip to content

fix(serializer): Serialize void elements as ""#442

Merged
fb55 merged 3 commits intomasterfrom
serialize-void
Mar 7, 2022
Merged

fix(serializer): Serialize void elements as ""#442
fb55 merged 3 commits intomasterfrom
serialize-void

Conversation

@fb55
Copy link
Copy Markdown
Collaborator

@fb55 fb55 commented Mar 7, 2022

Fixes #289

Copy link
Copy Markdown
Collaborator

@wooorm wooorm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit, otherwise 👍

Comment thread packages/parse5/lib/serializer/index.test.ts Outdated
@wooorm
Copy link
Copy Markdown
Collaborator

wooorm commented Mar 7, 2022

An optional idea: it could be good to test what happens to these known “void” elements in SVG/MathML contexts. As there void from HTML does not exist, but self-closing from XML does.

@fb55
Copy link
Copy Markdown
Collaborator Author

fb55 commented Mar 7, 2022

@wooorm Thanks for the reviews!

it could be good to test what happens to these known “void” elements in SVG/MathML contexts. As there void from HTML does not exist, but self-closing from XML does

Good idea, added!

@fb55 fb55 enabled auto-merge (squash) March 7, 2022 14:34
@fb55 fb55 merged commit 1c7f792 into master Mar 7, 2022
@fb55 fb55 deleted the serialize-void branch March 8, 2022 11:01
jmbpwtw pushed a commit to jmbpwtw/parse5 that referenced this pull request Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Serialize the children of void elements as the empty string

2 participants