I want to select all labels except those within a div of a given
class, but the exclusion is ignored :/

These work fine:
$("div[class='t2-display'] label").append("Only expected ones");
$("div.t2-display label").append("Only expected ones");

These don't - all labels are selected, no matter the div:
$("div[class!='t2-display'] label").append("All!");
$("div:not(.t2-display) label").append("All!");

The basic selector filters, work fine:
$("div[class!='t2-display']").append("Only expected ones");
$("div:not(.t2-display)").append("Only expected ones");

It's only when combining that with an ancestor descendent selection
that it fails.

Is there a way round this or is it a bug?

F

Reply via email to