Stronger type checking

el.tagName returns a string, so better to check type and equality by changing '==' to '==='