Bug 37629 - XHTML document with encoding="default" displays unsupported encoding error
Summary: XHTML document with encoding="default" displays unsupported encoding error
Status: CLOSED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: XML (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.6
: P2 Normal
Assignee: Nobody
URL:
Keywords: HasReduction, InRadar
Depends on:
Blocks:
 
Reported: 2010-04-14 18:04 PDT by David Kilzer (:ddkilzer)
Modified: 2010-05-18 10:55 PDT (History)
1 user (show)

See Also:


Attachments
Test case with invalid encoding ("default") (277 bytes, application/xhtml+xml)
2010-04-14 18:05 PDT, David Kilzer (:ddkilzer)
no flags Details
Test case with invalid encoding ("default") and charset override (277 bytes, application/xhtml+xml; charset=iso-8859-1)
2010-04-14 18:18 PDT, David Kilzer (:ddkilzer)
no flags Details
Test case with valid encoding ("utf-8") and charset override (275 bytes, application/xhtml+xml; charset=iso-8859-1)
2010-04-15 10:38 PDT, David Kilzer (:ddkilzer)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Kilzer (:ddkilzer) 2010-04-14 18:04:52 PDT
* SUMMARY
When loading an XHTML document with an <?xml?> tag that specifies encoding="default", WebKit returns an unsupported encoding error.  The same page loads fine in Firefox 3.5.8.

* STEPS TO REPRODUCE
1. Open test case in Safari.

* RESULTS
Error page is displayed:

This page contains the following errors:

error on line 1 at column 37: Unsupported encoding default
Below is a rendering of the page up to the first error.

* REGRESSION
Unknown.  Tested with a local debug build of WebKit r57418.
Comment 1 David Kilzer (:ddkilzer) 2010-04-14 18:05:26 PDT
Created attachment 53392 [details]
Test case with invalid encoding ("default")
Comment 2 David Kilzer (:ddkilzer) 2010-04-14 18:06:35 PDT
<rdar://problem/7865987>
Comment 3 David Kilzer (:ddkilzer) 2010-04-14 18:18:10 PDT
Created attachment 53394 [details]
Test case with invalid encoding ("default") and charset override
Comment 4 David Kilzer (:ddkilzer) 2010-04-15 10:38:42 PDT
Created attachment 53449 [details]
Test case with valid encoding ("utf-8") and charset override
Comment 5 Alexey Proskuryakov 2010-04-19 10:25:34 PDT
Filed <https://bugzilla.mozilla.org/show_bug.cgi?id=560242>.
Comment 6 Alexey Proskuryakov 2010-05-18 10:48:22 PDT
Firefox developers agreed that this is their bug. There doesn't seem to be enough compatibility pressure for us to adopt this quirk.
Comment 7 David Kilzer (:ddkilzer) 2010-05-18 10:55:36 PDT
Closing.