We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0721107 commit 532bb05Copy full SHA for 532bb05
devdocs-macos/user-scripts/page-search.js
@@ -84,6 +84,10 @@
84
if (parent.tagName === 'MARK') {
85
return NodeFilter.FILTER_REJECT;
86
}
87
+ // The node is not visible on the page.
88
+ if (parent.offsetParent === null) {
89
+ return NodeFilter.FILTER_REJECT;
90
+ }
91
let content = node.textContent;
92
if (parent.hasAttribute(DATA_TEXTCONTENT)) {
93
content = parent.getAttribute(DATA_TEXTCONTENT);
0 commit comments