I can't really get why the following selector works as expected (i.e. get the td
):
table tr td
but this one doesn't:
table > tr > td
The td
is a descendant of tr
, which in turn is a descendant of table
, but they are also children of each other. Therefore, I thought that the >
selector would work too.
I made two fiddles:
- Child: http://jsfiddle.net/brLee/
- Descendant: http://jsfiddle.net/brLee/1/
Why isn't the >
selector working here?