Closed
Bug 240321
Opened 20 years ago
Closed 20 years ago
XHTML Documents should default to UTF-8 and not look at the "default" charset
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bc, Assigned: jst)
References
()
Details
(Keywords: fixed1.7)
Attachments
(4 files)
349 bytes,
text/html
|
Details | |
334 bytes,
application/xhtml+xml
|
Details | |
6.63 KB,
patch
|
Details | Diff | Splinter Review | |
2.75 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
dbaron
:
approval1.7+
|
Details | Diff | Splinter Review |
When UTF-8 document is served as HTML, multibyte characters are display correctly if charset autodetection is turned off however if the document is served as XHTML then the document is incorrectly assumed to be iso-8859-1.
Reporter | ||
Comment 1•20 years ago
|
||
Reporter | ||
Comment 2•20 years ago
|
||
bz says <quote>It's a bug in nsHTMLDocument::StartDocumentLoad -- for XHTML documents it needs to do the same thing as nsXMLDocument::StartDocumentLoad does -- default to UTF-8 and not look at the "default charset".</quote>
Assignee | ||
Comment 3•20 years ago
|
||
Assignee: general → jst
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•20 years ago
|
||
Assignee | ||
Updated•20 years ago
|
Attachment #146033 -
Flags: superreview?(bzbarsky)
Attachment #146033 -
Flags: review?(bzbarsky)
Comment 5•20 years ago
|
||
Comment on attachment 146033 [details] [diff] [review] diff -w of the above for review. r+sr=bzbarsky
Attachment #146033 -
Flags: superreview?(bzbarsky)
Attachment #146033 -
Flags: superreview+
Attachment #146033 -
Flags: review?(bzbarsky)
Attachment #146033 -
Flags: review+
Reporter | ||
Comment 6•20 years ago
|
||
Is this something that is appropriate for 1.7? I guess that XHTML served as application/xhtml+xml in UTF8 is not that common but ...
Comment 7•20 years ago
|
||
Comment on attachment 146033 [details] [diff] [review] diff -w of the above for review. I absolutely think we should land this in 1.7 -- it's a trivial patch and could become a much bigger liability a year out.
Attachment #146033 -
Flags: approval1.7?
Attachment #146033 -
Flags: approval1.7? → approval1.7+
Assignee | ||
Comment 8•20 years ago
|
||
Fix checked in on the trunk.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 9•20 years ago
|
||
*** Bug 243865 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•