Hi all,
I'm having some problems understanding why I'm getting an error with
the following SVG document:
http://www.danrumney.co.uk/test.svg
The javascript is pretty basic, call "getElementById" method of an
SVGSVGElement object in order to get a child element of it with a
specified ID... instead I see
Error: uncaught exception: [Exception... "Component returned failure
code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED)
[nsIDOMSVGSVGElement.getElementById]" nsresult: "0x80004001
(NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame ::
http://www.danrumney.co.uk/demo.js :: <TOP_LEVEL:: line 4" data: no]
In the Javascript console.
I'm using Firefox 1.5.0.8. The SVG *is* rendering, so I know that the
SVG is fine. Also, the javascript is simple enough that, by inspection,
it all looks fine.
What I'm thinking is that, perhaps a different Javascript interpreter
is used for SVG as compared to the one for HTML. Not sure *why* this
would be the case, but I can't think of an alternative reason.
Any suggestions/guidance would be appreciated.
Dan