W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2013

Re: [whatwg] The iframe’s encoding only gets sniffed by Firefox - who is buggy?

From: Anne van Kesteren <annevk@annevk.nl>
Date: Mon, 11 Mar 2013 18:03:46 +0000
Message-ID: <CADnb78gP6hEKRQpxprrKSiB0atk0T=eUwh8n73UajNKF9Nzx_g@mail.gmail.com>
To: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Cc: whatwg@lists.whatwg.org
On Mon, Mar 11, 2013 at 6:46 AM, Leif Halvard Silli
<xn--mlform-iua@xn--mlform-iua.no> wrote:
> There is bug here, but I'm not sure whether the bug is in Firefox or
> the others. Why does Firefox work even without the @charset attribute
> on the <sript> - but not the others?

I think the bug is in the other browsers. <iframe> starts out as
about:blank (always the case if there's no src). about:blank defaults
to a text/html resource of the empty string whose encoding is utf-8.
That's it. (Unless one of the scripts included causes navigation, that
would complicate matters.)


-- 
http://annevankesteren.nl/
Received on Monday, 11 March 2013 18:04:16 GMT

This archive was generated by hypermail 2.3.1 : Monday, 11 March 2013 18:04:16 GMT