Merge pull request #15 from Validark/patch-3

Add support for tagName property
This commit is contained in:
Zeno Zeng 2022-04-10 14:41:37 +08:00 committed by GitHub
commit 1b44f090e5
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) {
Object.defineProperty(_this, prop, {
get: function() {