3 ms·
the DOM tree is going to say either html:code or {http://something}code neither of which is just code.
by inigyou 3mo ago
the DOM tree is going to say either html:code or {http://something}code neither of which is just code.
- chrismorgan 3mo agoWhen 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.