Add support for tagName property
This commit is contained in:
parent
b01fb23995
commit
9ad91ad969
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user