From 8169bfebd791dfcd000324b2dd821a5101077e0e Mon Sep 17 00:00:00 2001 From: dhrname Date: Wed, 8 May 2013 23:44:21 +0900 Subject: [PATCH] =?utf8?q?SVGForeignObject=E3=81=AE=E3=82=A4=E3=83=99?= =?utf8?q?=E3=83=B3=E3=83=88=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- org/w3c/dom/svg.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/org/w3c/dom/svg.js b/org/w3c/dom/svg.js index 25ebd60..c5d8027 100644 --- a/org/w3c/dom/svg.js +++ b/org/w3c/dom/svg.js @@ -6307,6 +6307,11 @@ function SVGForeignObjectElement(_doc) /*: /*readonly SVGAnimatedLength*/ this.width = new sl(); /*readonly SVGAnimatedLength*/ this.height = new sl(); sl = void 0; + this.addEventListener("DOMNodeInserted", function(evt){ + if (evt.eventPhase === /*Event.AT_TARGET*/ 2) { + evt.target.parentNode._tar.appendChild(evt.target._tar) + } + }, false); this.addEventListener("DOMNodeInsertedIntoDocument", function(evt){ if(evt.eventPhase === /*Event.CAPTURING_PHASE*/ 1) { var tar = evt.target; -- 2.11.0