For the archives: it turns out you can get this to work if you use
inline SVG as opposed to embedding it in an <object> tag. The <object>
tag messes with mootools.

 Kai

On Wed, Sep 9, 2009 at 1:38 PM, Kai Backman <[email protected]> wrote:
> I recently started testing mootools in my little SVG application and
> it seems like there are issues with extending elements inside the SVG
> document. I get the following error in firebug when I try:
>
> this.ownerDocument.getWindow is not a function
> set()()mootools.js (line 128)
> D()(DOMMouseScroll )mootools.js (line 169)
> [Break on this error] },getWindow:function(){return
> this.owner...nt.getElementById(D);if(!B){return null;
>
> This is probably related to the fact that I have to go through
> 'contentDocument' to get at the elements in the SVG dom in the first
> place. In Chrome I can add the event to the document and things work,
> in Firefox the wheel only works if it's outside the SVG area even if
> the event is attached to the document.
>
> Is there a known workaround for this problem?
>
> Kai
>

Reply via email to