My HTML looks like this:
<div class="node-inner">
...
<a href="/test/profile" title="View user profile.">test</a>
...
</div>
Using usercss
, I am trying to remove the content of <div class="node-inner">
only if it contains href="/test/profile"
.
This is my current approach:
.node-inner[class='node-inner'] {
display: none;
}
However, this approach filters everything. How can I modify it to remove the content of a div with class node-inner
only if it contains href="/test/profile"
?