From b4dde7078f171dd66b13bda74a52ed63d72d622a Mon Sep 17 00:00:00 2001 From: Validark Date: Sun, 27 Feb 2022 06:08:54 -0600 Subject: [PATCH] Delegate getAttribute/setAttribute --- element.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/element.js b/element.js index f865af8..d68c5f2 100644 --- a/element.js +++ b/element.js @@ -95,4 +95,12 @@ SVGCanvasElement.prototype.getElement = function() { return this.wrapper; }; +SVGCanvasElement.prototype.getAttribute = function(prop) { + return this.wrapper.getAttribute(prop); +}; + +SVGCanvasElement.prototype.setAttribute = function(prop, val) { + this.wrapper.setAttribute(prop, val); +}; + export default SVGCanvasElement;