Open Bravotic opened 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.
Also might be a good idea to just start with implementing the DOM as interfaces
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/