Open GoogleCodeExporter opened 8 years ago
// remove the original SVG OBJECT node from our handlers._svgObjects
// array
var objID;
if(typeof node._objID!='undefined') { // native handler
objID=node._objID;
} else if(typeof node.contentDocument!='undefined') { // IE
// node is a Flash node; get a reference to our fake _Document
// and then use that to get our Flash Handler
/*----------------------------------
OSS:Hack temporary work around
objID = node.contentDocument._handler.id;
----------------------------------*/
objID=node.id;
} else {
objID=node._handler.id;
}
/*----------------------------------
OSS:Hack temporary work around
----------------------------------*/
if(!objID)
console.error("Can not resolve Flash handler id");
Original comment by osstec...@gmail.com
on 7 Dec 2011 at 7:56
We incorrectly specified a data-path and data-htc-filename which also included
the path. Any improper definition causes
FlashHandler._prepareBehavior
// attach SVG behavior to the page
ns.doImport(libraryPath+htcFilename);
to concat an invalid filePathName resulting in .htc not to load. No errors are
thrown.
We have added a check in our startup for our stupid mistakes:
if(!gSVGDOMDoc.getElementsByTagNameNS) {
console.error("_SVG:onLoad: .htc not loaded/initialized");
return;
}
Original comment by osstec...@gmail.com
on 20 Dec 2011 at 6:11
Original issue reported on code.google.com by
osstec...@gmail.com
on 7 Dec 2011 at 5:24