mirror of https://github.com/gorhill/uBlock.git
we need the body as anchor for relative CSS rules
This commit is contained in:
parent
aa9bea2e76
commit
99774f4d19
|
@ -446,7 +446,7 @@ var cosmeticFilterFromElement = function(elem, out) {
|
|||
var filtersFromElement = function(elem) {
|
||||
netFilterCandidates.length = 0;
|
||||
cosmeticFilterCandidates.length = 0;
|
||||
while ( elem && elem !== document.body ) {
|
||||
while ( elem && elem !== document.documentElement ) {
|
||||
netFilterFromElement(elem, netFilterCandidates);
|
||||
cosmeticFilterFromElement(elem, cosmeticFilterCandidates);
|
||||
elem = elem.parentNode;
|
||||
|
|
Loading…
Reference in New Issue