[whatwg] The iframe’s encoding only gets sniffed by Firefox - who is buggy?
Anne van Kesteren
annevk at annevk.nl
Mon Mar 11 11:03:46 PDT 2013
On Mon, Mar 11, 2013 at 6:46 AM, Leif Halvard Silli
<xn--mlform-iua at 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.)
More information about the whatwg