[Done] EHH should detect if a whole class name is removed
Posted: Sat Aug 07, 2010 2:26 pm
Just a simple example, it is no ad, but the real example was on a Dutch site and I won't bother you with languages you probably don't know
Say you are on http://www.bbc.co.uk/ and you 'really' would like to block the brown boxes below each column header.
Their class is "title noSummary themeBgColour"
This results in the EHH suggesting
bbc.co.uk##DIV.title.noSummary.themeBgColour
But what if you would like to block class "title"?
The EHH suggests
bbc.co.uk##DIV[class^="title"]
However, my request is to let it suggest
bbc.co.uk##DIV.title
or more general:
if you modify the class field in the EHH and you remove a full class then it should still show the element.class1.class2 syntax, rather than suggesting element[class^="class1 class2"]
Or maybe a better example:
You again have
bbc.co.uk##DIV.title.noSummary.themeBgColour
but you really don't want noSummary in the selector.
So you remove it. Now the css selector SHOULD be
bbc.co.uk##DIV.title.themeBgColour or eventually bbc.co.uk##DIV[class^="title"][class$="themeBgColour"]
but it shows the (invalid) filter
bbc.co.uk##DIV[class*="title themeBgColour"]
(p.s.: the real example which made me report this is that I wanted to block the divs with class "teaser-component-inner border" on "http://www.metronieuws.nl/". But of course the 'border' class doesn't need to be in the selector... so I removed it and was wondered about the EHH suggesting a [class^="..."] filter instead of a .class filter. But as said before, I wouldn't bother you with a Dutch list. I can read it (otherwise I couldn't maintain a Dutch filter list), but I guess you can't)
(p.p.s.: I used 'green' as the 'best' filter, blue as the current filter, which isn't perfect and red as broken filter...)
Say you are on http://www.bbc.co.uk/ and you 'really' would like to block the brown boxes below each column header.
Their class is "title noSummary themeBgColour"
This results in the EHH suggesting
bbc.co.uk##DIV.title.noSummary.themeBgColour
But what if you would like to block class "title"?
The EHH suggests
bbc.co.uk##DIV[class^="title"]
However, my request is to let it suggest
bbc.co.uk##DIV.title
or more general:
if you modify the class field in the EHH and you remove a full class then it should still show the element.class1.class2 syntax, rather than suggesting element[class^="class1 class2"]
Or maybe a better example:
You again have
bbc.co.uk##DIV.title.noSummary.themeBgColour
but you really don't want noSummary in the selector.
So you remove it. Now the css selector SHOULD be
bbc.co.uk##DIV.title.themeBgColour or eventually bbc.co.uk##DIV[class^="title"][class$="themeBgColour"]
but it shows the (invalid) filter
bbc.co.uk##DIV[class*="title themeBgColour"]
(p.s.: the real example which made me report this is that I wanted to block the divs with class "teaser-component-inner border" on "http://www.metronieuws.nl/". But of course the 'border' class doesn't need to be in the selector... so I removed it and was wondered about the EHH suggesting a [class^="..."] filter instead of a .class filter. But as said before, I wouldn't bother you with a Dutch list. I can read it (otherwise I couldn't maintain a Dutch filter list), but I guess you can't)
(p.p.s.: I used 'green' as the 'best' filter, blue as the current filter, which isn't perfect and red as broken filter...)