Open GoogleCodeExporter opened 9 years ago
Oops copied the wrong version of the fix sorry.
I posted
...
svgwebObject = '';
while (a.window != top && i > 0) {
if(!a.frameElement.id) {
a.frameElement.id = svgweb._generateID('__svg__random__', '__iframe');
}
// svgwebObject =
'document.getElementById("'+a.frameElement.id+'").contentWindow' +
((svgwebObject != '') ? '.' : '') + svgwebObject;
svgwebObject = 'top.document.getElementById("'+self.frameElement.id+'").contentWindow.svgweb';
a = a.parent;
i--;
}
svgwebObject = 'top.' + svgwebObject + '.svgweb';
...
it should read
...
svgwebObject = '';
while (a.window != top && i > 0) {
if(!a.frameElement.id) {
a.frameElement.id = svgweb._generateID('__svg__random__', '__iframe');
}
svgwebObject = 'document.getElementById("'+a.frameElement.id+'").contentWindow' + ((svgwebObject != '') ? '.' : '') + svgwebObject;
// svgwebObject =
'top.document.getElementById("'+self.frameElement.id+'").contentWindow.svgweb';
a = a.parent;
i--;
}
svgwebObject = 'top.' + svgwebObject + '.svgweb';
...
Really sorry
Original comment by goo...@jeremy42.co.uk
on 7 Apr 2011 at 10:40
'top' should perhaps be replaced with 'parent'
Original comment by joao.ei...@gmail.com
on 2 Jun 2011 at 11:41
Original issue reported on code.google.com by
goo...@jeremy42.co.uk
on 7 Apr 2011 at 10:35