mirror of
https://github.com/zotero/zotero.git
synced 2026-10-09 03:18:01 +00:00
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
Reference in a new issue