(2012/02/23 14:26), Diana wrote:
> Plus, this line: var a = document.getElementById("dialSvg");
> works well, the result is a HTMLEmbedElement. I checked what is defined
> in this HTMLEmbedElement, there is no contentDocument defined, thus, the
> following line:
>
> var svgDoc = a.contentDocument;
> returns null.

Hi Diana,

I believe the HTMLEmbedElement interface does not include a 
contentDocument property, unlike HTMLObjectElement (and 
HTMLIFrameElement etc.). I think you want to use getSVGDocument.[1] 
Jonathan Watt and Erik Dahlström have each helpfully put together test 
pages for this.[2][3]

Regards,

Brian

[1] http://www.w3.org/TR/SVG/struct.html#InterfaceGetSVGDocument
[2] https://jwatt.org/svg/demos/getSVGDocument.html
[3] 
http://xn--dahlstrm-t4a.net/svg/html/get-embedded-svg-document-script.html


------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to