mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-03 17:49:39 +02:00
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
Block a user