W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2010

[whatwg] CSS canvas() function

From: Robert O'Callahan <robert@ocallahan.org>
Date: Thu, 2 Dec 2010 14:20:59 +1300
Message-ID: <AANLkTimYSGQKz21G2o0pxH-r7-COaivLVQxCdrktjKJT@mail.gmail.com>
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:
> <script>
> var frame = document.createElement("iframe");
> frame.src = "http://www.example.com"
> document.cssElementMap.foo = frame;
> </script>
> 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...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20101202/965dc31f/attachment.htm>
Received on Wednesday, 1 December 2010 17:20:59 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:02 UTC