Page 1 of 1

hide <h1>advert</h1> but not <h1>title<

Posted: Tue Nov 13, 2007 5:07 pm
by dersven
HI!
i think the title says everything. i want to hide <h1>-Tags that contain "advert". the tag itself has no id,... and no defined position in the source code.
is there an attribute like "value",...?

Code: Select all

#h1(value=advert)
did not work.

thanks for your help.

Re: hide <h1>advert</h1> but not <h1>title

Posted: Tue Nov 13, 2007 9:28 pm
by chewey
That's not possible using ABP.

Element hiding rules can only match attributes of elements, not content they enclose:

Code: Select all

<h1 this=is_an_attribute> content goes here </h1>

Posted: Wed Nov 14, 2007 10:49 am
by Wladimir Palant
Element hiding can only look at parents of an element, not at its children. That's a limitation of CSS, and element hiding is built on it.