I think `sibling.tagName` is ambiguous. You have to read the whole block of code to understand what is going on.