"" HTML. data-whatever - HTML5, , Javascript .
: <a confirm="foo"></a> HTML, <a data-confirm="foo"></a> .
Rails UJS data-confirm , , . data-confirm.
, :
response.should have_selector("a",
:href => destroy_user_account_path(@profile.user),
'data-confirm' => "a",
:title => "Delete #{@profile.user.name}",
:class => "delete",
:content => "Delete User")
, , .