18 June 2023
After working on the project for a while,
i realised this is a wrong approach to do this.
Instead what I should do is create chainable methods like
createElem("ul", properties)
.createElem("li", liProperties)
.createElem("a", aProperties)
To create a ul>li>a structure
But I can't figure what design should I go for and more importantly"how" if I want to create
ul>li*5>a
(I've yet to implement any of this, this is just the conclusion I reached after several bugs and ugly code)