Forum Moderators: not2easy

Message Too Old, No Replies

What does this mean? div[class~="value"]

         

gilzero

4:47 pm on Feb 1, 2009 (gmt 0)

10+ Year Member



What does this mean?

div[class~="value"]

Is it same as div.value?

Any differences?

Thanks.

swa66

5:16 pm on Feb 1, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's one of the more advanced selectors:
[w3.org...]

Technically, standard wise, it should indeed have the same as div.value .

But that is not counting the bugs, features and other shortcomings of browsers out there.
It's probably one of the hacks that exploit shortcomings of some browsers in their support for all selectors part of the selector.