3 ms·
That's just HTML5 rewritten as a well formed XML document. HTML5 does not describe well formed XML. That you can put the same information of a HTML5 document i
by bhaak 6y ago
That's just HTML5 rewritten as a well formed XML document. HTML5 does not describe well formed XML.
That you can put the same information of a HTML5 document into a XML document doesn't help much if most of the HTML5 documents out there are not polygot.
- chrismorgan 6y agoBut the point is that XML syntax is still a thing, supported by all browsers (and it’s reasonable to expect that support to remain as long as HTML remains). See also https://html.spec.whatwg.org/multipage/introduction.html#html-vs-xhtml https://html.spec.whatwg.org/multipage/introduction.html#htm...: > When a document is transmitted with an XML MIME type, such as application/xhtml+xml, then it is treated as an XML document by web browsers, to be parsed by an XML processor. Authors are reminded that the processing for XML and HTML differs; in particular, even minor syntax errors will prevent a document labeled as XML from being rendered fully, whereas they would be ignored in the HTML syntax. HTML does use an XML base (elements, attributes, namespaces, &c.), it just doesn’t use an XML parser most of the time. But the XMLness is easily observed in various DOM APIs.
- lucideer 6y agoIt doesn't help from a client perspective, but depending on your page delivery pipeline could be of potential help for some from a server perspective.