Preferences: Exclude HTML hidden="" elements from search
This commit is contained in:
parent
71a85e4d06
commit
69d9b01b6e
1 changed files with 1 additions and 1 deletions
|
@ -704,7 +704,7 @@ ${str}
|
|||
* @return {Promise<Node[]>}
|
||||
*/
|
||||
async _findNodesMatching(root, term) {
|
||||
const EXCLUDE_SELECTOR = 'input, [hidden="true"], [no-highlight]';
|
||||
const EXCLUDE_SELECTOR = 'input, [hidden]:not([hidden="false"]), [no-highlight]';
|
||||
|
||||
let matched = new Set();
|
||||
let treeWalker = document.createTreeWalker(root, NodeFilter.SHOW_TEXT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue