diff --git a/examples/node/domstubs.js b/examples/node/domstubs.js index 8671022e8..9c671aae4 100644 --- a/examples/node/domstubs.js +++ b/examples/node/domstubs.js @@ -101,6 +101,10 @@ DOMElement.prototype = { } }, + hasChildNodes: function DOMElement_hasChildNodes() { + return this.childNodes.length !== 0; + }, + cloneNode: function DOMElement_cloneNode() { var newNode = new DOMElement(this.nodeName); newNode.childNodes = this.childNodes;