Fixed #19598 -- Fixed jQuery tagName retrieving

Thanks rj at rudiculous.net for the report.