jquery/jquery-mobile — pull request #6093 by allsteady (2013-06-12 02:31:01+00:00)
Title: $.mobile.getAttribute : Add a validation logic into getAttribute function to prevent errors.

Hi all.

I’d like to propose to improve ‘$.mobile.getAttribute’ method in jquery.mobile.core.js.
I know that @gabrielschulhof made the method to improve performance.

@gabrielschulhof, I found a problem in the method while I use it on Tizen Web UIFW.

If an element of argument is null or it does not support native function(getAttribute), That method will make errors.

So we’d better to add validation logics into the function to prevent the errors.

As you guys can see my PR codes, I added some validation logics in the getAttribute.
Please check it.