Mon, 06 Jun 2011 15:47:40 +0200, /Robert Kaiser/:
Stanimir Stamenkov schrieb:
Sun, 05 Jun 2011 13:18:59 -0700, /David E. Ross/:
On 6/5/11 12:47 PM, Jan_Galt wrote:

I've been getting these once in awhile, when I go to a site.
Are they from Seamonkey?

XML Parsing Error: prefix not bound to a namespace
Location: http://www.carinos.com/page/home
Line Number 5, Column 1:<html xmlns="http://www.w3.org/1999/xhtml";
mlns:og="http://ogp.me/ns#";
^

The Web site is sniffing for Firefox instead of Gecko. See my
<http://www.rossde.com/internet/sniffing.html>.

They better fix their server to either not pretend serving
'Content-Type: application/xhtml+xml', or fix their content to be real
XHTML written in a way (usually no additional effort) that it is
compatible when served as 'text/html', also.

That's MS Foundation Classes or so that is doing that and has been
for years now. Anyone building websites with that have that problem,
and it looks like Microsoft doesn't know how to do it right - we
don't have any power over them to fix it.
SeaMonkey 2.1 should display this correctly, though, as it makes
those sites believe it is Firefox 4.

I guess MS have first made it honor the 'Accept' request header, as setting:

general.useragent.compatMode.firefox;false

then removing "application/xhtml+xml" from the 'Accept' request header:

network.http.accept.default;text/html,application/xml;q=0.9,*/*;q=0.8

makes it display fine in SeaMonkey 2.1, being served as 'Content-Type: text/html'. I guess MS have received numerous bug reports from clients generating tag-soup, their content doesn't appear in popular browsers like Firefox, so MS probably made it sniff for those browsers and forced serving text/html upon. That's why I've suggested the site owners just fix their generated content to be syntactically correct XHTML which will display and function just fine when served as text/html.

Looking a the error and source - appears the content author/developer has missed a letter from an XML namespace declaration attribute:

mlns:og="http://ogp.me/ns#";

should be:

xmlns:og="http://ogp.me/ns#";

It doesn't appear to belong to MS. There are few more XML syntax errors (lines 96, 444 - ampersands not properly encoded) which unlikely come from the MS framework, also.

--
Stanimir
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to