Rather than require upper or closer case here, I would probably just lowercase both or uppercase both. I think `node.tagName` will always be upcase anyway, so instead of doing this you could just put `tagName.toUpperCase()` and now we know the strings will be in the same case.