Forum Discussion

kman1523's avatar
kman1523
New Contributor
9 years ago

first-of-type css selector

According to the website, the :first-of-type selctor should be valid. However using table.QuerySelectorAll("td:first-of-type"), where table is a valid table just results in undefined. QuerySelectorAll("td") on the same table works fine. Does anyone know what the issue is?

1 Reply

  • kman1523's avatar
    kman1523
    New Contributor

    So upgraded to TC11 and IE11. first-of-type is still broken. Says that "li:first-of-type" is an invalid arguement.