4 ms·
You don’t seem to realize that your post only applies to xhtml doctypes and your concern is extremely outdated to boot. Use an html parser to parse html. You
by hombre_fatal 6y ago
You don’t seem to realize that your post only applies to xhtml doctypes and your concern is extremely outdated to boot.
Use an html parser to parse html.
You also are extremely off on your estimation of how common xhtml is on the web since you thought this would be a useful PSA and you seem unaware of what <!doctype html> means here, as it specifically is not xml. I’m not tying to be mean, but you came in with guns blazing with weird advice and it seems very mislead.
- chrismorgan 6y agoNote that the XML serialisation of HTML is still a thing—if you open a .xhtml file or navigate to something served with the content-type application/xhxml+xml, the XML parser will be used instead of the HTML parser.