Re: removing the srcdoc

Tab Atkins Jr. wrote:
> On Tue, Jan 26, 2010 at 11:05 AM, Julian Reschke <julian.reschke@gmx.de> wrote:
>> Tab Atkins Jr. wrote:
>>> ...
>>> 3. Data urls have some annoying boilerplate - you'll have to start
>>> every one of them with
>>> "data:text/html-sandboxed;charset=utf-8,%3C%21DOCTYPE%20html%3E"
>>> (maybe include a <title> too?).  We can't really fix this.  It's not a
>>> *huge* deal, but it was a nice plus for @srcdoc.
>>> ...
>> Why do yo need the charset param, why do you need the DOCTYPE?
> 
> If you omit the charset, I think it will attempt to default to
> windows-1252.  At least, it apparently will with text/html.  Not sure
 > ...

I don't think this is true. As far as I can tell, the default is 
impl/local specific.

Anyway, adding a BOM should be sufficient for triggering UTF-8.

> what happens with text/html-sandboxed.
> 
> The DOCTYPE is required or else the page will be in quirks mode.

Well, that's something we could change for text/html-sandboxed. Also, we 
could allow fragments of HTML. (Or even require them?)

Best regards, Julian

Received on Tuesday, 26 January 2010 17:41:50 UTC