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.
Versions
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.