On Thu, 30 Apr 2009 21:15:04 +0200, Ian Hickson <i...@hixie.ch> wrote:
As far as I can tell this doesn't require any changes to HTML5, since the
same applies here as applies to a regular <img>, right?

Anne van Kesteren replied:
Maybe you misunderstood, but the request was not about <img> referencing SVG, but passing an SVGSVGElement object directly to drawImage() and friends.

Maybe I misunderstood (or, more precisely, I am about to state my probable misunderstanding):

Does this mean for example, that the author could take a chunk of <svg> code or its equivalent and pass it to canvas.drawImage() (and friends) and then have a raster version in JavaScript of the <svg> ? If so, then would that not allow, client-side, things like interrogating pixel values at point (x,y) within an SVG? That's something I'd like to see. I understand that if done improperly this can yield security problems across domains, but it seems in this case we're only talking one domain.

David

Reply via email to