I have the following problem. I have plenty of tables, but they all have different structure: one have <table><thead><tbody> type, while the others have <table><tbody> only.
And I need to apply css for thead (if it set in table) OR to tbody (it is set always). I shouldn't set styles for both of them, only for the first who goes after <table> tag.
So if I have
<table>
<thead>...</thead>
<tbody>...<tbody>
</table>
then CSS should be applied only for thead.
And vice versa if I have:
<table>
<tbody>...</tbody>
<table>
then CSS should be applied for tbody.
I wish there was something like 'if thead is set then...'