Description
This is just a tracking issue for what needs doing before this is published publically:
- investigate whether
is*
functions should be migrated into parse5 core (or exported if they already exist) - Compatibility with google/lit #3
- Compatibility with modernweb #4
- Add unit tests #5
- split monolithic code up into individual files if needed
- ensure traversal function interfaces are agreed upon and implementation works as expected
- create a migration PR in the lit repo
- create a migration PR in the modernweb repo
- add a CI setup
Most of this will be about compat with google/mw repos as they're the primary users of dom5 these days. There are other consumers (incl myself) but i'd argue we shouldn't try maintain the old interfaces as there will be many unused functions google only ever made use of.
Possible gaps in parse5
I've had to create these internal functions:
isDocument
isDocumentFragment
isTemplateNode
isParentNode
isChildNode
I feel like most of these should really be part of the tree adapter interface, since thats where the others currently live (e.g. isTextNode
, isElementNode
, etc).
cc @fb55
also @fb55 i can't see the settings of this repo now that i moved it into parse5 org (to be able to make it public eventually). do you know if im just missing a permission? i also want to rename it to just tools
i think
also would be nice to cc some people into here before it gets published (e.g. some of lit/mw teams) so maybe we need to make it public but just not publish it yet