GreenCopperRuntime icon indicating copy to clipboard operation
GreenCopperRuntime copied to clipboard

HTML Dom

Open andrieshiemstra opened this issue 2 years ago • 1 comments

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

andrieshiemstra avatar May 10 '22 14:05 andrieshiemstra