This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23940 - If getting an encoding returned x-user-defined, return windows-1252 instead to be compatible with a WebKit/Blink quirk that Gecko is copying.
Summary: If getting an encoding returned x-user-defined, return windows-1252 instead t...
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-29 13:10 UTC by contributor
Modified: 2014-05-07 23:32 UTC (History)
6 users (show)

See Also:


Attachments

Description contributor 2013-11-29 13:10:08 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/fetching-resources.html
Multipage: http://www.whatwg.org/C#extracting-character-encodings-from-meta-elements
Complete: http://www.whatwg.org/c#extracting-character-encodings-from-meta-elements
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
If getting an encoding returned x-user-defined, return windows-1252 instead to
be compatible with a WebKit/Blink quirk that Gecko is copying.

Posted from: 207.218.72.65 by annevk@annevk.nl
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:28.0) Gecko/20100101 Firefox/28.0
Comment 1 Anne 2013-11-29 13:10:51 UTC
See https://bugzilla.mozilla.org/show_bug.cgi?id=213517#c3 for background details.
Comment 2 Ian 'Hixie' Hickson 2013-12-02 20:24:23 UTC
Does this really only work for <meta>?
Comment 4 Henri Sivonen 2013-12-03 12:15:08 UTC
It's probably a good idea to see how https://bugzilla.mozilla.org/show_bug.cgi?id=213517 gets resolved before putting this stuff in a spec.
Comment 5 Ian 'Hixie' Hickson 2014-01-02 21:06:49 UTC
Fix for that bug just landed, so I'll wait a bit longer to see if there's fallout.
Comment 6 Henri Sivonen 2014-04-11 11:16:07 UTC
Regarding the IRC ping: The change, as described by Anne in comment 0, shipped in Firefox 28.

I have not seen any complaints. Just now, I did a few Bugzilla searches in order to look for misfiled complaints and found none.

Let's make the change in the spec. I suggest adding a comment in the spec source attributing the weird solution to Chrome.
Comment 7 Ian 'Hixie' Hickson 2014-05-07 23:29:40 UTC
BTW, in the Gecko tests I didn't see anything verifying that this does happen for <meta name=content-type content=...> but not for XML <?charset?> or HTTP content-types.
Comment 8 contributor 2014-05-07 23:32:43 UTC
Checked in as WHATWG revision r8618.
Check-in comment: Make <meta charset=x-user-defined> turn into windows-1252 for legacy reasons
http://html5.org/tools/web-apps-tracker?from=8617&to=8618