[Sie-announce] SIEコード [2131] a要素の中に直接textノードがかかれたときの対処をした

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 11月 5日 (金) 23:24:39 JST


Revision: 2131
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2131
Author:   dhrname
Date:     2010-11-05 23:24:39 +0900 (Fri, 05 Nov 2010)

Log Message:
-----------
a要素の中に直接textノードがかかれたときの対処をした

Modified Paths:
--------------
    branches/06x/063/org/w3c/dom/svg.js

Modified: branches/06x/063/org/w3c/dom/svg.js
===================================================================
--- branches/06x/063/org/w3c/dom/svg.js	2010-11-05 13:14:54 UTC (rev 2130)
+++ branches/06x/063/org/w3c/dom/svg.js	2010-11-05 14:24:39 UTC (rev 2131)
@@ -4304,6 +4304,9 @@
   this.addEventListener("DOMNodeInserted", function(evt){
     var tar = evt.target;
     if (evt.eventPhase === Event.BUBBLING_PHASE) {
+      if ((tar.parentNode === evt.currentTarget) && (tar.nodeType === Node.TEXT_NODE)) { //直接Textノードが指定されれば
+        evt.currentTarget._tar.appendChild(document.createTextNode(tar.data));
+      }
       return; //強制終了させる
     }
     if (tar.nextSibling) {




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