Skip to content

feat(serialize): support HTML elements#155

Open
zsilbi wants to merge 6 commits intomainfrom
feat/html-elements
Open

feat(serialize): support HTML elements#155
zsilbi wants to merge 6 commits intomainfrom
feat/html-elements

Conversation

@zsilbi
Copy link
Copy Markdown
Collaborator

@zsilbi zsilbi commented Mar 25, 2025

Resolves #154

Added support for serializing HTML elements.

We could also support these (??):

  • Comment
  • DocumentFragment
  • HTMLDocument
  • HTMLCollection
  • NodeList
  • Range
  • Text

Added DOM tests with @vitest-environment happy-dom

@pi0
Copy link
Copy Markdown
Member

pi0 commented Mar 25, 2025

This is really nice work with tests coverage 🚀

I think it is almost time we think about supporting extended serializers (like a preset addon for supporting HTML serialization), even though bundle addition is few bytes still is not needed for many (I imagine most of) users.

@pi0 pi0 force-pushed the feat/html-elements branch from 85f13e7 to 670de3f Compare March 25, 2025 20:57
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.

Support serializing HTML elements

2 participants