I am currently using Ruby along with Nokogiri to parse through HTML documents. I am looking to select all nodes that match a CSS class with the style attribute display: none
, but the CSS class is unknown in advance.
For example:
<html>
<body>
<p class="visibleTopics">Visible Topic Content</p>
<p class="invisibleTopics">Invisible Topic Content</p>
</body
</html>
In another file, it's defined as:
.invisibleTopic {
display: none
}
I am interested in selecting the node containing content from the invisibleTopics
class based on its style being set to display: none
. Any advice or suggestions on how to achieve this?