Possible Duplicate:
CSS 3 content selector?
I couldn't find a way online to hide or show elements based on their contents in CSS. More specifically, in the following example, I'm searching for a CSS3 rule that would allow me to hide all <tr> entries whose second <td> child contains File.
<tr> <td>Succeded</td> <td>File</td> <td>Create</td> <td>Left->Right</td> <td>\Thunderbird\00sqrcu5.default.archive.7z</td> </tr> <tr> <td>Succeded</td> <td>Folder</td> <td>Create</td> <td>Left->Right</td> <td>\Thunderbird\mab</td> </tr> <tr> <td>Failed</td> <td>File</td> <td>Create</td> <td>Left->Right</td> <td>\Thunderbird\mab\abook.mab</td> </tr> Is this even possible? I know that it would be better to add attributes to the <tr> elements, but I'm not sure if an attributes-based solution would support complex rules such as "second child is not 'Folder' and first is 'Failed'".
Ideas?
<td t="File">)?