W3C home > Mailing lists > Public > www-svg@w3.org > March 2013

Re: SVGSVGElement.toDataURL()

From: Robert Longson <longsonr@gmail.com>
Date: Tue, 12 Mar 2013 09:02:14 +0000
Message-ID: <CAOu7Uv6YmJKC2M_DuyHSC5pPsH7CDz7+tjWHqHgo+_e-6Kw2Ag@mail.gmail.com>
To: Klaus Förster <klaus.foerster@uibk.ac.at>
Cc: www-svg@w3.org
Klaus,

Once you did such a transfer you can access all the bits of the image
and do things like read off the visited state of links. We restrict
image elements not to show things like link visited state to prevent
such privacy leaks amongst other things. I'd be very wary of
implementing SVGSVGElement.toDataURL even if it was added to a
specification because of that.

Robert.

On 12 March 2013 07:54, Klaus Förster <klaus.foerster@uibk.ac.at> wrote:
> On 03/11/2013 03:22 PM, Robert Longson wrote:
>>
>> Looks pretty much cross browser to me according to the final row here:
>> http://samples.msdn.microsoft.com/ietestcenter/#html5Canvas
>
> The test you are referring to uses an SVG image as src attribute for the
> HTMLImageElement that gets passed to Canvas drawImage. This is of course
> valid according to the canvas specification but not what I was referring to.
> I would like to use SVGSVGElement directly as source for drawImage or even
> better SVGSVGElement.toDataURL to skip all the intermediate steps needed to
> convert from SVG to raster. The browser has done this conversion already
> when it displays my SVG content, so why not allow to export it as raster as
> well?
>
> Klaus
>
> [1]
> http://samples.msdn.microsoft.com/ietestcenter/html5/canvas_harness.htm?url=canvas-images-drawImage-001
>
>
Received on Tuesday, 12 March 2013 09:02:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:41 UTC