DOM for HTML and XML

Document Object Model means a programmatic way of dealing with the structure of a Document (both XML Document or HTML document).

This is DOM:

But HTML adds to it:

E.g. this is HTML not XML:

BTW one well/widely understood way of dealing with this is:

ADDENDUM: there are other ways such as Ractive’s dynamic templating.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato.

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.