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

[whatwg] Javascript: URLs as element attributes

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 01 Dec 2010 19:18:44 +0100
Message-ID: <op.vm1rtgjd64w2qv@anne-van-kesterens-macbook-pro.local>
On Wed, 01 Dec 2010 19:11:25 +0100, timeless <timeless at gmail.com> wrote:
> On Wed, Dec 1, 2010 at 5:29 PM, Boris Zbarsky <bzbarsky at mit.edu> wrote:
>> Oh, the other thing that JavaScript can do that data: can't do is trade  
>> off url length for CPU time.  A data: URI to write out the first 3000  
>> Fibonacci numbers would be a lot longer than the equivalent javascript:  
>> URI. Again, one would have to find non-silly use cases here.
>
> mandelbrot sets

These can also be done with data:text/html,<script>...</script> and maybe  
<canvas>. It is slightly longer, but not much.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Wednesday, 1 December 2010 10:18:44 UTC

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