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 bf7b691 commit 0d4e819Copy full SHA for 0d4e819
dom-element.js
@@ -128,6 +128,10 @@ DOMElement.prototype.getAttributeNS =
128
129
DOMElement.prototype.removeAttributeNS =
130
function _Element_removeAttributeNS(namespace, name) {
131
+ var forbiddenKeys = ['__proto__', 'constructor', 'prototype'];
132
+ if (forbiddenKeys.includes(name)) {
133
+ return; // Ignore dangerous keys
134
+ }
135
var attributes = this._attributes[namespace];
136
if (attributes) {
137
delete attributes[name]
0 commit comments