Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML Dom #22

Open
12 of 16 tasks
andrieshiemstra opened this issue May 10, 2022 · 1 comment
Open
12 of 16 tasks

HTML Dom #22

andrieshiemstra opened this issue May 10, 2022 · 1 comment

Comments

@andrieshiemstra
Copy link
Member

andrieshiemstra commented May 10, 2022

make html parsing and mutation available via html dom module

docs: https://hirofa.github.io/GreenCopperRuntime/green_copper_runtime/modules/htmldom/index.html

todo

  • NodeList
  • next/previousElementSibling
  • innerHTML
  • className
  • querySelector(all)
  • children/childNodes
  • append/removeChild
  • replaceChild
  • insertBefore/After
  • document.getElementById
  • textContent
  • 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 added a commit that referenced this issue May 10, 2022
andrieshiemstra added a commit that referenced this issue May 11, 2022
andrieshiemstra added a commit that referenced this issue May 11, 2022
andrieshiemstra added a commit that referenced this issue May 11, 2022
andrieshiemstra added a commit that referenced this issue May 12, 2022
andrieshiemstra added a commit that referenced this issue May 12, 2022
andrieshiemstra added a commit that referenced this issue May 12, 2022
andrieshiemstra added a commit that referenced this issue May 12, 2022
andrieshiemstra added a commit that referenced this issue May 12, 2022
andrieshiemstra added a commit that referenced this issue May 12, 2022
andrieshiemstra added a commit that referenced this issue May 16, 2022
andrieshiemstra added a commit that referenced this issue May 17, 2022
setAttribute now removes attr if value is null
andrieshiemstra added a commit that referenced this issue May 23, 2022
@andrieshiemstra
Copy link
Member Author

andrieshiemstra commented Jan 29, 2023

kuchiki is archived, use rcdom instead?

rcdom docs advise against it but the deno deno does use it
https://github.com/b-fuze/deno-dom/blob/master/html-parser/core/src/rcdom.rs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant