Finding text in hidden/collapsed containers in a web page
Are there any ideas or solutions to this? Collapsed text paragraphs have become a very common pattern, but is there a (suggested) way of letting the browser know that tag <section /> is in its collapsed state and to expand it, for instance when the text search hits something within it, CSS class thisClass is to be set on the container or JS function thatFunction() is to be called?
Probably this is something too specific to consider in HTML in general, but it does happen an awful, annoying lot...