Closed Bug 319447 Opened 19 years ago Closed 19 years ago

getSVGDocument() not implemented in <object> tag

Categories

(Core :: SVG, enhancement)

x86
Windows XP
enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 287465

People

(Reporter: JonasSchneider, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 I see that the getSVGDocument() method, which returns the containing SVGDocument object of an <embed> tag, is not implemented for the <object> tag. I think that method should be implemented for the <object> tag because it is one of the W3C-approved methods for embedding an SVG document into a HTML page, and the <embed> tag isn´t. Reproducible: Always Steps to Reproduce: 1. Check if an <object> tag DOM Equivalent has the property getSVGDocument Actual Results: getSVGDocument = undefined Expected Results: getSVGDocument= function() { ... }
anything wrong with using .contentDocument?
*** This bug has been marked as a duplicate of 287465 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
(In reply to comment #1) > anything wrong with using .contentDocument? As biesi says, use .contentDocument instead. Here are a couple of demos of moz and asv compatiple scripting: http://jwatt.org/svg/demos/scripting-across-embed.html http://jwatt.org/svg/demos/scripting-across-object.html
You need to log in before you can comment on or make changes to this bug.