Ctrl+F on web build log matches collapsed text and makes my browser scroll to locations without any search term occurrence

When I see a travis build failure for my project, I go to the build log (see for instance https://travis-ci.com/mit-plv/bedrock2/jobs/179673891), hit Ctrl+F in my browser, and search for “error”.

Actual behavior of my browser

It scrolls to locations which do not contain the search term, which is confusing.

Suspected reason

Some parts of the log are collapsed by default, and also contain the search term.

Desired behavior

The text of the collapsed parts of the log should not affect the results of the browser’s Ctrl+F.


Firefox version 65.0.1 (64-bit)
Chrome version 72.0.3626.109 (Official Build) (64-bit)

Suggested fix

Collapsed parts of the log should be removed from the DOM of the page, rather than just being hidden, and only be added to the DOM if I click on the unfolding triangle.

1 Like

That’s standard browser behavior, it’s the same at every page. If you wish to change that, you should probably send an FR to your browser’s team instead.