wcc
wcc copied to clipboard
expand (no-op) support of DOM shim for DOM traversal methods
Type of Change
- New Feature Request
Summary
Tracking a number of items that I think the DOM shim should be able to support, though I'm not sure how feasible / realistic any of them are, so will need to do some discovery of what makes sense to fall "in bounds" for SSR, short of just becoming a headless browser.
Details
Not sure how many of these can / should be supported, but some of them at least, if not at least for no-ops
- [ ] parentNodes
- [ ]
querySelector
/querySelectorAll
- [ ]
getElementBy[Id|ClassName|TagName|...]
- [ ] Node <> Element <> HTMLElement (ensure proper inheritance hierarchy)
Questions
- Is
appendNode
implemented correctly? - Use ASTs in DOM shim (?)