svnno****@sourc*****
svnno****@sourc*****
2010年 9月 17日 (金) 20:38:29 JST
Revision: 2004 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2004 Author: dhrname Date: 2010-09-17 20:38:29 +0900 (Fri, 17 Sep 2010) Log Message: ----------- IE9とそれ以前のバージョンの識別ができるように工夫した 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-09-16 14:17:29 UTC (rev 2003) +++ branches/06x/061/org/w3c/dom/svg.js 2010-09-17 11:38:29 UTC (rev 2004) @@ -4756,27 +4756,34 @@ + "v\\:group{text-indent:0px;position:relative;width:100%;height:100%;" +vmlUrl + "v\\:shape{width:100%;height:100%;" +vmlUrl; } - if (xmlhttp) { - var oba = document.createElement("div"); - oba.setAttribute("id","_NAIBU_outline"); - document.body.appendChild(oba); - var ob = document.getElementsByTagName("object"), em = document.getElementsByTagName("embed"); - var i = 0; - for (s=[];i<ob.length;++i) { - s[s.length] = new GetSVGDocument(ob[i]); - } - for (i=0;i<em.length;++i) { - s[s.length] = new GetSVGDocument(em[i]); - } - for (i=0;i<s.length;++i) { - if (i < s.length-1) { - s[i]._next = s[i+1] + //IEならばtrue + var isMSIE = /*@cc_on!@*/false; + if (xmlhttp && isMSIE) { + if (!!document.createElementNS) { //IE9ならば + if (!!document.createElementNS( "http://www.w3.org/2000/svg", "svg").createSVGRect) { } + } else { //IE6-8ならば + var oba = document.createElement("div"); + oba.setAttribute("id","_NAIBU_outline"); + document.body.appendChild(oba); + var ob = document.getElementsByTagName("object"), em = document.getElementsByTagName("embed"); + var i = 0; + for (s=[];i<ob.length;++i) { + s[s.length] = new GetSVGDocument(ob[i]); + } + for (i=0;i<em.length;++i) { + s[s.length] = new GetSVGDocument(em[i]); + } + for (i=0;i<s.length;++i) { + if (i < s.length-1) { + s[i]._next = s[i+1] + } + } + if (i > 0) { + s[0]._init(); //初期化作業を開始 + } + s = null; } - if (i > 0) { - s[0]._init(); //初期化作業を開始 - } - s = null; } }) ); NAIBU.addEvent("unload", unsvgtovml); \ No newline at end of file