OSDN Git Service

SVGForeignObjectのイベントを修正
authordhrname <dhrname@users.sourceforge.jp>
Wed, 8 May 2013 14:44:21 +0000 (23:44 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Wed, 8 May 2013 14:44:21 +0000 (23:44 +0900)
org/w3c/dom/svg.js

index 25ebd60..c5d8027 100644 (file)
@@ -6307,6 +6307,11 @@ function SVGForeignObjectElement(_doc) /*:
   /*readonly SVGAnimatedLength*/ this.width = new sl();\r
   /*readonly SVGAnimatedLength*/ this.height = new sl();\r
   sl = void 0;\r
+  this.addEventListener("DOMNodeInserted", function(evt){\r
+    if (evt.eventPhase === /*Event.AT_TARGET*/ 2) {\r
+      evt.target.parentNode._tar.appendChild(evt.target._tar)\r
+    }\r
+  }, false);\r
   this.addEventListener("DOMNodeInsertedIntoDocument", function(evt){\r
     if(evt.eventPhase === /*Event.CAPTURING_PHASE*/ 1) {\r
       var tar = evt.target;\r