jquery attributes: closes #5234. attr() supports jQuery.fn methods.