W3C home > Mailing lists > Public > public-html-comments@w3.org > October 2011

HTML 5 toDataUrl() method expansion

From: Brian Ernesto <bernesto@neoreef.com>
Date: Thu, 6 Oct 2011 22:27:18 +0000
To: "public-html-comments@w3.org" <public-html-comments@w3.org>
Message-ID: <50E708300442634FB4F4FEF74F444D6935AC1613@NEOREEFSRV20.neoreef.com>
Hello all,

We just came up with an idea that we think would be a worthy addition to the HTML 5 spec. Being new to the contribution process I hope this is the appropriate venue to vet this idea.

We have been using a script called html2canvas that utilizes the CANVAS tag to render screen captures of HTML blocks via the toDataURL() method. It does this by recreating and drawing each element to a CANVAS tag, but it can be very slow on large pages.

It occurred to us today that it would really be useful to have every element in the DOM have the method toDataURL() (e.g. document.getElementById('myDiv').toDataURL() ). This would be a powerful way of capturing image data of any element from the whole HTML level down to a lone DIV. This would allow use in things such as animations, graphical annotations, and various UI effects.

I welcome your thoughts.
Regards,
Brian Ernesto
President
bernesto@neoreef.com<mailto:bernesto@neoreef.com>
www.neoreef.com<http://www.neoreef.com/intro>
Toll Free: 1-888-NEOREEF :: Phone: (208) 629-2921 :: Fax: (208) 629-2922 :: (208) 283-0784
The Neoreef vision is to empower your online business to be full of life and have its own "ecosystem" which helps it replenish, grow and make every visit a unique and personal experience.

[Description: http://www.neoreef.com/Documents%20and%20Settings/4/Site%20Documents/Stationary/neoemail.jpg]<http://www.neoreef.com/intro>







image001.jpg
(image/jpeg attachment: image001.jpg)

Received on Friday, 7 October 2011 11:57:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 7 October 2011 11:57:27 GMT