Bravotic / Nematode

GNU General Public License v3.0
0 stars 0 forks source link

Implement Element DOM interface #1

Open Bravotic opened 6 months ago

Bravotic commented 6 months ago

While this won't be used for a while, it would be nice to get the DOM entirely spec compliant early.

https://dom.spec.whatwg.org/

Bravotic commented 6 months ago

Might be a good idea to full send object oriented hell. Maybe make a RenderableElement class which contains our actual element we will use in the backend. It will have the functionality needed by the renderer like flow() or getContentX()/getContentY(). That RenderableElement will extend Element, which will of course go down the line of inheritance as stated in the spec.

Bravotic commented 6 months ago

Also might be a good idea to just start with implementing the DOM as interfaces