mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-03-10 15:53:12 +00:00
Revert "Wrap SVGElement.ownerSVGElement"
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
var Element = scope.wrappers.Element;
|
||||
var HTMLElement = scope.wrappers.HTMLElement;
|
||||
var registerObject = scope.registerObject;
|
||||
var defineWrapGetter = scope.defineWrapGetter;
|
||||
|
||||
var SVG_NS = 'http://www.w3.org/2000/svg';
|
||||
var svgTitleElement = document.createElementNS(SVG_NS, 'title');
|
||||
@@ -31,7 +30,5 @@
|
||||
delete Element.prototype.classList;
|
||||
}
|
||||
|
||||
defineWrapGetter(SVGElement, 'ownerSVGElement');
|
||||
|
||||
scope.wrappers.SVGElement = SVGElement;
|
||||
})(window.ShadowDOMPolyfill);
|
||||
|
||||
@@ -72,17 +72,4 @@ suite('SVGElement', function() {
|
||||
}
|
||||
});
|
||||
|
||||
test('ownerSVGElement', function() {
|
||||
var el = document.createElementNS(SVG_NS, 'svg');
|
||||
var el2 = document.createElementNS(SVG_NS,'svg');
|
||||
var g = document.createElementNS(SVG_NS, 'g');
|
||||
el.appendChild(g);
|
||||
|
||||
assert.equal(g.ownerSVGElement, el);
|
||||
|
||||
el2.appendChild(g);
|
||||
|
||||
assert.equal(g.ownerSVGElement, el2);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user