Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

FIXED: undefined reference (parent)

  • Loading branch information...
commit 3645bbb1cb8cc76a51d4b9930596d51200f737b3 1 parent 1b72347
@tmpvar tmpvar authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/jsdom/level2/core.js
View
7 lib/jsdom/level2/core.js
@@ -380,15 +380,16 @@ core.Element.prototype.removeAttributeNS = function(/* string */ namespaceURI,
throw new core.DOMException(core.NO_MODIFICATION_ALLOWED_ERR);
}
- var defaults,
+ var ownerDoc = this.ownerDocument,
+ defaults,
clone,
found,
defaultEl,
defaultAttr,
clone;
- if (parent.ownerDocument.doctype && parent.ownerDocument.doctype._attributes) {
- defaults = this.ownerDocument.doctype._attributes;
+ if (ownerDoc.doctype && ownerDoc.doctype._attributes) {
+ defaults = ownerDoc.doctype._attributes;
defaultEl = defaults.getNamedItemNS(namespaceURI, this.localName);
}
Please sign in to comment.
Something went wrong with that request. Please try again.