logoalt Hacker News

swiftcodertoday at 2:52 PM1 replyview on HN

> If you do a 'view source' in Firefox on a completely valid XHTML 1.0/1.1 page, it'll redline the XML declaration like it's something wrong

Is the page actually being served as "application/xhtml+xml"? Most xhtml sites aren't, in which case the browser is indeed interpreting those as invalid declarations in a regular old html document


Replies

chrismorgantoday at 3:03 PM

If it’s served as XML, then view-source instead highlights the doctype line as an error (“Stray doctype.”).

show 1 reply