[Sie-announce] SIEコード [1269] cloneNodeで、v : fill要素などがついているのを削除

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 9月 18日 (金) 22:28:27 JST


Revision: 1269
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1269
Author:   dhrname
Date:     2009-09-18 22:28:27 +0900 (Fri, 18 Sep 2009)

Log Message:
-----------
cloneNodeで、v:fill要素などがついているのを削除

Modified Paths:
--------------
    branches/05x/051/sie.js

Modified: branches/05x/051/sie.js
===================================================================
--- branches/05x/051/sie.js	2009-09-18 11:35:21 UTC (rev 1268)
+++ branches/05x/051/sie.js	2009-09-18 13:28:27 UTC (rev 1269)
@@ -1813,8 +1813,7 @@
         }  else{
           uri.match(/#(.+)$/);
           this.resource = document.getElementById(RegExp.$1);
-          var dc = this.resource.cloneNode(true);
-          this.tar.appendChild(dc);
+          this.tar.innerHTML = this.resource.outerHTML.replace(/<\/?v\:(fill|stroke)>/g, "");
         }
       break;
       case "new":




Sie-announce メーリングリストの案内
Back to archive index