jquery/jquery — pull request #539 by Orkel (2011-10-10 05:02:20+00:00)
Title: Introducing hasAttr()

From old and closed ticket --
http://bugs.jquery.com/ticket/4324

You can you use attr() method, but hasAttr will be much faster --
http://jsperf.com/attr-vs-hasattr

Please check it out before close it.