Closed
Bug 584254
Opened 15 years ago
Closed 15 years ago
HTML document that begins with an XML declaration is treated as an XML
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: d_nard, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; Windows NT 6.1; WOW64; rv:2.0b3pre) Gecko/20100803 Minefield/4.0b3pre
Build Identifier: Mozilla/5.0 (Windows; Windows NT 6.1; WOW64; rv:2.0b3pre) Gecko/20100803 Minefield/4.0b3pre
Minefield produces the following error
"XML Parsing Error: XML or text declaration not at start of entity
Location: http://www.teavana.com/The-Teas/Oolong-Teas/Monkey-Picked-Oolong-Tea.axd
Line Number 2, Column 1:<?xml version="1.0" encoding="utf-8" ?>"
IE ignores the XML declaration and renders the webpage.
Reproducible: Always
Comment 1•15 years ago
|
||
That is not a html document because the server sends :
Content-Type: application/xhtml+xml; charset=utf-8
(checked the URL with http://web-sniffer.net )
You should open a bug for IE.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
Various Mozilla browsers (including the latest release of Firefox) render that page correctly, see http://browsershots.org/http://www.teavana.com/The-Teas/Oolong-Teas/Monkey-Picked-Oolong-Tea.axd
This change is not announced as one of the changes in version 4.
Comment 3•15 years ago
|
||
Seamonkey1.1x shows the same error according to the browsershots page while Firefox3.6.8 seems to render it.
You are doing very stupid User Agent sniffing somewhere !
I get a XML error with
Mozilla/5.0 (Windows; Windows NT 6.1; rv:2.0b3pre) Gecko/20100803 SeaMonkey/2.1a3pre
but as soon as I append a Firefox/3.6 it works
Mozilla/5.0 (Windows; Windows NT 6.1; rv:2.0b3pre) Gecko/20100803 SeaMonkey/2.1a3pre Firefox/3.6
just adding Firefox isn't enough and you have to clear the cache or do a forced reload if you want to reproduce it.
I get the opposite result if I use
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 (works)
and only change the UA to:
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100722 Seamonkey/1.0 (doesn't work)
Your User Agent sniffing is wrong, see http://geckoisgecko.info/ and it fails with your build because the UA in your nightly build contains Minefield instead of Firefox.
Not my page, but interesting. Definitely is not a Firefox problem then. Their sniffing does fail.
Comment 5•15 years ago
|
||
Oh sorry, I thought that this is your page.
You can see the bad sniffing if you look at the browsershots page.
All the Minefield, Iceweasel,K-Melon and Seamonkey shots show the XML error but they are all using Gecko. There should not be a Rendering difference between the same Gecko Versions in different browsers
You need to log in
before you can comment on or make changes to this bug.
Description
•