svnno****@sourc*****
svnno****@sourc*****
2010年 10月 15日 (金) 21:27:42 JST
Revision: 2058
http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2058
Author: dhrname
Date: 2010-10-15 21:27:42 +0900 (Fri, 15 Oct 2010)
Log Message:
-----------
script要素で実行したコードの中に、変数documentが含まれていた場合の対処をした
Modified Paths:
--------------
branches/06x/061/org/w3c/dom/svg.js
Modified: branches/06x/061/org/w3c/dom/svg.js
===================================================================
--- branches/06x/061/org/w3c/dom/svg.js 2010-10-14 11:31:46 UTC (rev 2057)
+++ branches/06x/061/org/w3c/dom/svg.js 2010-10-15 12:27:42 UTC (rev 2058)
@@ -4298,7 +4298,9 @@
this.addEventListener("SVGLoad", function(evt){
var tar = evt.target, script = tar._text;
var tod = tar.ownerDocument;
+ NAIBU._temp_doc = tod;
script = script.replace(/function\s+(\w+)/g, "$1 = function");
+ script = "(function(document){" +script+ "})(NAIBU._temp_doc);"
eval(script);
tod.documentElement._svgload_limited--;
if (tod.documentElement._svgload_limited < 0) {