From 9ad91ad969fd8a84875a6d43cbdf2a53e433232f Mon Sep 17 00:00:00 2001 From: Validark Date: Thu, 7 Apr 2022 18:23:24 -0500 Subject: [PATCH] Add support for tagName property --- element.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/element.js b/element.js index d68c5f2..233f579 100644 --- a/element.js +++ b/element.js @@ -24,6 +24,13 @@ function SVGCanvasElement(options) { } }); + Object.defineProperty(this, 'tagName', { + get: function() { + return "CANVAS"; + }, + set: function() {} // no-op + }); + ["width", "height"].forEach(function(prop) { Object.defineProperty(_this, prop, { get: function() {