svnno****@sourc*****
svnno****@sourc*****
2010年 5月 19日 (水) 23:25:06 JST
Revision: 1834 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1834 Author: dhrname Date: 2010-05-19 23:25:06 +0900 (Wed, 19 May 2010) Log Message: ----------- Modified Paths: -------------- branches/ufltima/dom/svg.js Modified: branches/ufltima/dom/svg.js =================================================================== --- branches/ufltima/dom/svg.js 2010-05-19 14:24:44 UTC (rev 1833) +++ branches/ufltima/dom/svg.js 2010-05-19 14:25:06 UTC (rev 1834) @@ -1316,7 +1316,7 @@ document.body.appendChild(oba); //HTML内のobject要素を探し出して、メソッドを結びつける var obje = document.getElementsByTagName("object"); - for (var i=0, objli=1;i<objli;++i) { + for (var i=0, objli=obje.length;i<objli;++i) { var objei = obje[i]; xmlhttp.open("GET", objei.getAttribute("data"), true); xmlhttp.setRequestHeader("X-Requested-With", "XMLHttpRequest"); @@ -1356,7 +1356,7 @@ dcp.style.height = tar.height.baseVal.value+ "px"; dcp.coordsize = tar.width.baseVal.value+ " " +tar.height.baseVal.value; sp.appendChild(dcp); - document.body.insertBefore(sp, document.body.lastChild); + objei.parentNode.insertBefore(sp, objei); dcp.appendChild(sdt) while (fi) { //子ノードを検索して、子供がいれば、importNodeメソッドを再帰的に実行する n = s.importNode(fi, true);