ohash
ohash copied to clipboard
feat(serialize): support HTML elements
Resolves https://github.com/unjs/ohash/issues/154
Added support for serializing HTML elements.
We could also support these (??):
CommentDocumentFragmentHTMLDocumentHTMLCollectionNodeListRangeText
Added DOM tests with @vitest-environment happy-dom
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.