Fixed equality check of tagName

It looks like assignment was used instead of an equality check when checking if an element is a form.