On 11/21/2009 8:08 AM, Stanimir Stamenkov wrote:
> /Paul B. Gallagher/:
>> Cedar wrote:
>>
>>> When I go to this website with SM 2: www.cattlenetwork.com, I get the
>>> following error message:
>>>
>>> XML Parsing Error: mismatched tag. Expected: </meta>.
>>>  (...)
>>>
>>> Any ideas what this might be about? If someone else would be so kind
>>> as to try this website and see if you get the same would be appreciated.
>> Yes, I get it too, with SM 1.1.16.
>>
>> The point of the message is that if you have a <meta> tag you must also
>> have a </meta> tag (that's what "mismatched" means -- it's like having
>> an opening parenthesis without a closing parenthesis). When the parser
>> reaches the </head> tag, it gives up.
> 
> In HTML the META element doesn't have an end tag.  However they 
> serve the page explicitly specifying 'Content-Type: 
> application/xhtml+xml' which makes the browser use an XML parser. 
> Seems they sniff on the 'User-Agent' request header and serve 
> different 'Content-Type' depending on the browser, as I don't get 
> problem using Firefox 3.5, Safari 4 and Opera 10.
> 
>> Not your fault, not your browser's fault, though I suppose some might
>> say the browser should overlook this error. Internet Exploiter does.
> 
> Internet Explorer doesn't understand XHTML.  It parses it as regular 
> tag-soup HTML.
> 

Hmm.  The server is sniffing for the UA string.  When I spoof Firefox
3.5, I can readily view the page.  When I don't spoof at all, I see
Cedar's original problem.

The interesting thing is that, when I send the URI to the W3C validator
at <http://validator.w3.org/>, it reports 762 XHTML errors.  When I
spoof Firefox 3.5, view and copy the source, and paste it into the W3C
validator, it reports 787  XHTML errors, 25 more than for just the URI.

All this merely reaffirms the old saying:  "Garbage in equals garbage
out."  I might submit a Tech Evangelism bug report.

-- 
David E. Ross
<http://www.rossde.com/>

Go to Mozdev at <http://www.mozdev.org/> for quick access to
extensions for Firefox, Thunderbird, SeaMonkey, and other
Mozilla-related applications.  You can access Mozdev much
more quickly than you can Mozilla Add-Ons.
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to