Add filter to NodeIterator checking for styled nodes
This commit is contained in:
parent
34b27437d0
commit
3adc2e0f83
@ -99,7 +99,9 @@ window._qutebrowser.stylesheet = (function() {
|
|||||||
create_style();
|
create_style();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var iter = document.createNodeIterator(document);
|
var iter = document.createNodeIterator(document,
|
||||||
|
// eslint-disable-next-line no-bitwise
|
||||||
|
NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_ELEMENT);
|
||||||
var node;
|
var node;
|
||||||
while ((node = iter.nextNode())) {
|
while ((node = iter.nextNode())) {
|
||||||
if (check_style(node)) {
|
if (check_style(node)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user