We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following for-loop in the definition of Node.removeChild seems to be using this, i.e., the parent node, in places where the child was intended:
this
for (var i=0;i < this._children.length;i++) { if (this._children[i] === oldChild) { found=true; this._children.remove(i,i); oldChild._parentNode = null; if (this.id) { if (this._ownerDocument._ids) { this._ownerDocument._ids[this.id] = null; delete this._ownerDocument._ids[this.id]; } } if (this.nodeType === this.DOCUMENT_NODE) { if (this._documentElement === oldChild) { this._documentElement = null;// force a recalculation } } return oldChild; } }
In particular, it removes the parent from the document's id list, effectively hiding it from getElementById
getElementById
The text was updated successfully, but these errors were encountered:
removeChild - remove child's id, not parent's, from document. closed by 04119c8.
Sorry, something went wrong.
No branches or pull requests
The following for-loop in the definition of Node.removeChild seems to be using
this
, i.e., the parent node, in places where the child was intended:In particular, it removes the parent from the document's id list, effectively hiding it from
getElementById
The text was updated successfully, but these errors were encountered: