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.
2 parents bf7b691 + 6c5f31a commit fe32e8dCopy full SHA for fe32e8d
dom-element.js
@@ -128,9 +128,10 @@ DOMElement.prototype.getAttributeNS =
128
129
DOMElement.prototype.removeAttributeNS =
130
function _Element_removeAttributeNS(namespace, name) {
131
+ // Safely access and delete the attribute
132
var attributes = this._attributes[namespace];
- if (attributes) {
133
- delete attributes[name]
+ if (attributes && Object.prototype.hasOwnProperty.call(attributes, name)) {
134
+ delete attributes[name];
135
}
136
137
0 commit comments