[whatwg] HTML 5 toDataUrl() method expansion
Brian Ernesto
bernesto at neoreef.com
Thu Oct 6 15:34:09 PDT 2011
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 at neoreef.com
www.neoreef.com
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.
More information about the whatwg
mailing list