mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #10706 from Snuffleupagus/domstubs-hasChildNodes
Add missing `hasChildNodes` polyfill to `domstubs.js` (PR 10022 follow-up)
This commit is contained in:
commit
5498b19108
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue