Testcase for jQuery Ticket 7223

data( key ) retrieves the new HTML 5 data-* attributes value differing from what the api says

by jitter

HTML

<!-- actual reporter see here: http://blog.seankoole.com/digging-into-jquery-143s-data-method -->
<div id='test' data-foo='this is foo'></div>

JavaScript

var $div = $('#test'), $b = $('body');
$b.append('<p>data("foo") before change: '+$div.data ('foo')+'</p>');
document.getElementById('test').setAttribute('data-foo', 'this is changed foo');
$b.append('<p>data("foo") after change: '+$div.data ('foo')+'</p>');