3 ms·
When an XML document contains HTML, the DOM representation is of elements in the http://www.w3.org/1999/xhtml http://www.w3.org/1999/xhtml namespace. When you
by chrismorgan 3mo ago
When an XML document contains HTML, the DOM representation is of elements in the http://www.w3.org/1999/xhtml http://www.w3.org/1999/xhtml namespace.
When you parse a document or fragment that is in HTML syntax, the DOM representation is of elements in the http://www.w3.org/1999/xhtml http://www.w3.org/1999/xhtml namespace.
There is no difference.
- inigyou 3mo agoHope your parser implements all this correctly!
- chrismorgan 3mo agoIt’s genuinely easier to get it right than to get it wrong.