Closed
Bug 240321
Opened 21 years ago
Closed 21 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•21 years ago
|
||
Reporter | ||
Comment 2•21 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•21 years ago
|
||
Assignee: general → jst
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Attachment #146033 -
Flags: superreview?(bzbarsky)
Attachment #146033 -
Flags: review?(bzbarsky)
![]() |
||
Comment 5•21 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•21 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•21 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•21 years ago
|
||
Fix checked in on the trunk.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
![]() |
||
Comment 9•21 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
•