mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-24 03:12:46 +01:00
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
Block a user