W3C home > Mailing lists > Public > www-svg@w3.org > August 2012

Re: GetSVGDocument interface

From: Helder Magalh„es <helder.magalhaes@gmail.com>
Date: Tue, 21 Aug 2012 12:16:23 +0100
Message-ID: <CAPODfC4nBxKiTdouVEdvLUT8ioSyCTzLNPAKTNg9Q_O4a7+nLQ@mail.gmail.com>
To: Erik Dahlstrom <ed@opera.com>
Cc: www-svg@w3.org
Hi everyone,


>> Do we need to keep this interface, which has the getSVGDocument() method
>> on it, and which was intended to be implemented on interface like
>> HTMLObjectElement?  It's entirely redundant with contentDocument. Unless
>> people think content is using it, we should drop it.

I remember having issues in WebKit where the contentDocument didn't
behave as desired. Given the quirks, I ended up using both in the "SVG
Object - HTML Canvas Interactors" demo [2] where one can take a look
at the source and see further details in the 'fetchSVGDocument' method
comments).


> Anyway, I think we should remove getSVGDocument from SVG2.

+1 for removing from SVG2 as well. A new major spec. version should
definitely try to "kill" this sort of redundancy which, in some cases
(as the one seen in WebKit), even ends up having two different
behaviors.


Shame on me for never having formally reported this to the WebKit team
(I haven't check if this is still an issue in current builds)...


Cheers,
 Helder


[2] http://heldermagalhaes.com/stuff/svg/demos/SVGObject-HTMLCanvasInteractors/
Received on Tuesday, 21 August 2012 11:17:21 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:52 GMT