Re: [whatwg] Specify getSVGDocument

On Mon, Nov 18, 2013 at 8:02 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 11/18/13 1:37 PM, Philip Jägenstedt wrote:
>>
>> http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2643
>>
>> In my testing, getSVGDocument is supported on <embed>, <frame>,
>> <iframe> and <object> in Firefox Nightly, IE11 Preview, Safari 7.0 and
>> Opera 12.16, the only exception being frame.getSVGDocument in Firefox.
>>
>> I don't know if this API is actually useful, but since it's already
>> implemented everywhere it should probably be spec'd.
>
>
> SVG2 is trying to spec it, afaict, as basically an alias for
> .contentDocument.  It _would_ make more sense to do that in HTML, I agree.

Indeed, since it's actually on the HTML*Element interfaces. SVG2 can
do partial interfaces, of course, but that makes it a bit harder to
actually find.

Philip

Received on Monday, 18 November 2013 21:33:45 UTC