Open GoogleCodeExporter opened 9 years ago
What steps will reproduce the problem? 1. Create an Element with SVG jQuery PlugIn 2. Call cloneNode on the created Element 3. Strange things are happening What is the expected output? What do you see instead? Expected (Source Element which should be cloned): <rect style="fill:#ffdd55;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none" id="textarea1" class="area" width="428" height="245" x="271" y="503"/> Actual Output: <rect style="length: 0; item: function() { return method.apply(context, (arguments.length) ? arguments : []); }; setProperty: function() { return method.apply(context, (arguments.length) ? arguments : []); }; getPropertyValue: function() { return method.apply(context, (arguments.length) ? arguments : []); }" addEventListener="function (t, l, u) { return this._fakeNode.addEventListener(t, l, u); }" getElementsByTagNameNS="function (n, l) { return this._fakeNode.getElementsByTagNameNS(n, l); }" _fakeNode="[object Object]" _handler="undefined" get="function (a) { return this._fakeNode.get(a); }" appendChild="function (c) { return this._fakeNode.appendChild(c); }" beginElement="function () { return this._fakeNode.beginElement(); }" beginElementAt="function (o) { return this._fakeNode.beginElementAt(o); }" endElement="function () { return this._fakeNode.endElement(); }" endElementAt="function (o) { return this._fakeNode.endElementAt(o); }" _cloneNode=" function cloneNode() { [native code] } " cloneNode="function (d) { return this._fakeNode.cloneNode(d); }" createSVGPoint="function () { return this._fakeNode.createSVGPoint(); }" createSVGRect="function () { return this._fakeNode.createSVGRect(); }" getAttribute="function(n) { return this._fakeNode.getAttribute(n); }" getAttributeNS="function (ns, l) { return this._fakeNode.getAttributeNS(ns, l); }" getScreenCTM="function () { return this._fakeNode.getScreenCTM(); }" getBBox="function () { return this._fakeNode.getBBox(); }" getCTM="function () { return this._fakeNode.getCTM(); }" hasChildNodes="function () { return this._fakeNode.hasChildNodes(); }" hasAttributes="function () { return this._fakeNode.hasAttributes(); }" hasAttribute="function (l) { return this._fakeNode.hasAttribute(l); }" hasAttributeNS="function (ns, l) { return this._fakeNode.hasAttributeNS(ns, l); }" insertBefore="function (n, o) { return this._fakeNode.insertBefore(n, o); }" isSupported="function (f, v) { return this._fakeNode.isSupported(f, v); }" setAttribute="function (n, v) { return this._fakeNode.setAttribute(n, v); }" setAttributeNS="function (ns, qName, v) { return this._fakeNode.setAttributeNS(ns, qName, v); }" removeChild="function (c) { return this._fakeNode.removeChild(c); }" replaceChild="function (n, o) { return this._fakeNode.replaceChild(n, o); }" removeAttribute="function (l) { return this._fakeNode.removeAttribute(l); }" removeAttributeNS="function (ns, l) { return this._fakeNode.removeAttributeNS(ns, l); }" removeEventListener="function (t, l, u) { return this._fakeNode.removeEventListener(t, l, u); }" set="function (a,o) { return this._fakeNode.set(a,o); }" create="function (e,a,n,f,o) { return this._fakeNode.create(e,a,n,f,o); }" createChild="function (e,a,i,n,f) { return this._fakeNode.createChild(e,a,i,n,f); }" addChild="function (c,i) { return this._fakeNode.addChild(c,i); }" _getNodeName="function () { return this._fakeNode.nodeName; }" _getNodeType="function () { return this._fakeNode.nodeType; }" _getLocalName="function () { return this._fakeNode.localName; }" _getPrefix="function () { return this._fakeNode.prefix; }" _getNamespaceURI="function () { return this._fakeNode.namespaceURI; }" _getChildNodes="function () { return this._fakeNode._getChildNodes(); }" _getParentNode="function () { return this._fakeNode._getParentNode(); }" _getFirstChild="function () { return this._fakeNode._getFirstChild(); }" _getLastChild="function () { return this._fakeNode._getLastChild(); }" _getPreviousSibling="function () { return this._fakeNode._getPreviousSibling(); }" _getNextSibling="function () { return this._fakeNode._getNextSibling(); }" _getNodeValue="function () { return this._fakeNode._nodeValue; }" _setNodeValue="function (v) { return this._fakeNode._setNodeValue(v); }" _getTextContent="function () { return this._fakeNode._getTextContent(); }" _setTextContent="function (v) { return this._fakeNode._setTextContent(v); }" _getData="function () { return this._fakeNode._getData(); }" _setData="function (v) { return this._fakeNode._setData(v); }" _getOwnerDocument="function () { return this._fakeNode.ownerDocument; }" _getId="function () { return this._fakeNode._getId(); }" _setId="function (v) { return this._fakeNode._setId(v); }" _getX="function () { return this._fakeNode._getX(); }" _getY="function () { return this._fakeNode._getY(); }" _getWidth="function () { return this._fakeNode._getWidth(); }" _getHeight="function () { return this._fakeNode._getHeight(); }" _getCurrentScale="function () { return this._fakeNode._getCurrentScale(); }" _setCurrentScale="function (v) { return this._fakeNode._setCurrentScale(v); }" _getCurrentTranslate="function () { return this._fakeNode._getCurrentTranslate(); }"/> What version of the product are you using? On what operating system, browser, and version of Flash? IE 8.0.6 on WinXP with Flash 11.2.202 Please provide any additional information below. Reduced test cases are always appreciated! I am calling cloneNode like this: this.selectedArea[0].cloneNode(false);
Original issue reported on code.google.com by h.falzbe...@gmail.com on 20 May 2012 at 1:10
h.falzbe...@gmail.com
Original issue reported on code.google.com by
h.falzbe...@gmail.com
on 20 May 2012 at 1:10