[Bug 24349] [imports]: Import documents should always be in no-quirks mode

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24349

--- Comment #10 from Morrita Hajime <morrita@google.com> ---
(In reply to Adam Klein from comment #9)
> I realize I'm coming late to the discussion, but I was thinking of
> implementing this in Blink and I'm confused as to the motivation. Wouldn't
> it make more sense to have imports get their quirks-mode but from their host
> document? That's where the <style> blocks in them are going to apply,
> anyway...

Good point. We saw similar problem when we were thinking about CSP,
that is, there are two documents, but there is only one context.

For example, it makes sense to give per-document quirks mode when thinking
about parsing. But it makes less sense when thinking about how style is
computed. The quirks mode affects many aspect of HTML and we cannot easily
decide which bits are related the context and which are purely for the
document.

Probably we should just let imports get the mode overridden, as if innerHTML
does. If imports were DocumentFragmetns, it would behave like that.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 24 February 2014 22:52:13 UTC