[whatwg] CSS canvas() function
robert at ocallahan.org
Wed Dec 1 17:20:59 PST 2010
On Thu, Dec 2, 2010 at 12:43 PM, Tab Atkins Jr. <jackalmage at gmail.com>wrote:
> My question was specifically for an out-of-document <iframe>.
> In-document, all elements are obviously valid.
> Something like:
> var frame = document.createElement("iframe");
> frame.src = "http://www.example.com"
> document.cssElementMap.foo = frame;
> Should this work? The rendering of a non-seamless <iframe> doesn't
> depend on any other elements in the document. In general, any
> replaced element seems to fall into this camp.
It depends on viewport size and medium, at least.
In the absence of compelling use cases, I'd just leave it at <img>, <canvas>
and <video> and whitelist in more elements later if necessary.
"Now the Bereans were of more noble character than the Thessalonians, for
they received the message with great eagerness and examined the Scriptures
every day to see if what Paul said was true." [Acts 17:11]
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the whatwg