Why does Opera parse my web page as XML?
Posted
by Adrian Grigore
on Stack Overflow
See other posts from Stack Overflow
or by Adrian Grigore
Published on 2010-05-04T15:49:48Z
Indexed on
2010/05/04
15:58 UTC
Read the original article
Hit count: 439
I just tried viewing my website http://www.logmytime.de/ in Opera (version 10.50) for the first time and for some reason it gives me an "xml parsing failed error" and refuses to display the web page.
I can choose to "Reparse the document as HTML" and then the page works fine, but that's hardly a solution to my problem.
The weird thing is that the error still occurs after setting a HTML (instead of XTHML) doctype:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
I checked the source output from the browser to make sure I did not make any mistake. I even viewed the same web page in Firebug and it shows a Content-Type of text/html; .
So, why does Opera still try to parse my web page as XML?
Thanks,
Adrian
© Stack Overflow or respective owner