In my web application I would like to complately avoid html and use only javascript to create web-page\'s dom tree.
What is faster writing web content in the traditi
HTML is parsed and generated by the browser and then entered into the DOM. Using javascript to manipulate the dom piece by piece is more overhead.
Imagine if you had to retype an article from a magazine. Now imagine doing so if every sentence was on a new page. ALthough the end result is a copied article, you had to spend all that time flipping pages.