We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9be3c13 commit 0e673d1Copy full SHA for 0e673d1
docs/components/PlotRender.js
@@ -40,13 +40,25 @@ class Element {
40
this.attributes[name] = String(value);
41
}
42
setAttributeNS(namespace, name, value) {
43
- this.attributes[name] = String(value);
+ this.setAttribute(name, value);
44
+ }
45
+ getAttribute(name) {
46
+ return this.attributes[name];
47
48
+ getAttributeNS(name) {
49
+ return this.getAttribute(name);
50
51
+ hasAttribute(name) {
52
+ return name in this.attributes;
53
54
+ hasAttributeNS(name) {
55
+ return this.hasAttribute(name);
56
57
removeAttribute(name) {
58
delete this.attributes[name];
59
60
removeAttributeNS(namespace, name) {
- delete this.attributes[name];
61
+ this.removeAttribute(name);
62
63
appendChild(child) {
64
this.children.push(child);
0 commit comments