mirror of https://github.com/gorhill/uBlock.git
return `null` for non-existing elements
This commit is contained in:
parent
1d448b85b2
commit
47f6a565fa
|
@ -173,7 +173,7 @@ var doesMatchSelector = function(node, selector) {
|
|||
/******************************************************************************/
|
||||
|
||||
DOMList.prototype.nodeAt = function(i) {
|
||||
return this.nodes[i];
|
||||
return this.nodes[i] || null;
|
||||
};
|
||||
|
||||
DOMList.prototype.at = function(i) {
|
||||
|
|
Loading…
Reference in New Issue