Add support for tagName property

This commit is contained in:
Validark 2022-04-07 18:23:24 -05:00 committed by GitHub
parent b01fb23995
commit 9ad91ad969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,13 @@ function SVGCanvasElement(options) {
} }
}); });
Object.defineProperty(this, 'tagName', {
get: function() {
return "CANVAS";
},
set: function() {} // no-op
});
["width", "height"].forEach(function(prop) { ["width", "height"].forEach(function(prop) {
Object.defineProperty(_this, prop, { Object.defineProperty(_this, prop, {
get: function() { get: function() {