Add missing hasChildNodes polyfill to domstubs.js (PR 10022 follow-up)

This commit is contained in:
Jonas Jenwald 2019-04-01 23:23:50 +02:00
parent 47f208df36
commit 9c3024fe7e

View File

@ -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;