Closed
Bug 610197
Opened 15 years ago
Closed 15 years ago
xml: FF4 ignores EncodingDecl in document type declaration and sets document encoding to Default Character Encoding
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: kdevel, Unassigned)
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b8pre) Gecko/20100101 Firefox/4.0b8pre
Build Identifier: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b8pre) Gecko/20100101 Firefox/4.0b8pre
The encoding is erroneosly set to ISO-8859-1 though iso-8859-15 is requested in the document.
Reproducible: Always
Steps to Reproduce:
1. load testcase
2.
3.
Actual Results:
Currency Sign is displayed
Expected Results:
Euro Sign is displayed.
Summary: MF sets page encoding to "ISO-8859-1" in XTHML page with encoding = "iso-8859-15" → xml: FF4 ignores EncodingDecl in document type declaration and sets document encoding to Default Character Encoding
http://nelhage.com/
Displays
Résumé ∙ Blog ∙ GPG key
in Mozilla/5.0 (X11; Linux i686; rv:2.0b8pre) Gecko/20101208 Firefox/4.0b8pre
Résumé ∙ Blog ∙ GPG key
in FF 3.5.15.
Version: unspecified → Trunk
mozilla-central seems to ignore the EncodingDecl
<?xml version="1.0" encoding="utf-8"?>
Comment 5•15 years ago
|
||
HTML5 parser is supposed to ignore the XML-like encoding declaration. It is consistent with the behavior of Internet Explorer.
http://dev.w3.org/html5/spec/parsing.html#determining-the-character-encoding
The wording in the standard is not precise. (the testcase IS an XML document since it is successfully parsed with any conforming XML parser. It is only served with a non-approrpiate MIME-type of "text/html"). According to the (non-normative) phrase
| Note: For XML documents, the algorithm user agents must use to determine the
| character encoding is given by the XML specification. This section does not
| apply to XML documents. [XML]
in sec. 8.2.2 this section would NOT apply to the testcase.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•