My code handles this by excluding `li`, `ol` and `ul` and then selecting on the closest parents.