GreenCopperRuntime
GreenCopperRuntime copied to clipboard
HTML Dom
make html parsing and mutation available via html dom module
docs: https://hirofa.github.io/GreenCopperRuntime/green_copper_runtime/modules/htmldom/index.html
todo
- [x] NodeList
- [x] next/previousElementSibling
- [x] innerHTML
- [x] className
- [x] querySelector(all)
- [x] children/childNodes
- [x] append/removeChild
- [x] replaceChild
- [x] insertBefore/After
- [x] document.getElementById
- [ ] textContent
- [x] nodeType
- [ ] lists.forEach
- [ ] fix === compare by returning same JSValue for nodes (will need a map with jsvalueref without refcount increment) (remove on proxy finalizer)
- [ ] cloneNode
- [ ] native methods for freq used (or all) instead of closures