changed attr('data-target') to data('target');

this will extend js interface, to be possible to setup targets for tabs as 
    var content=$('<div class="tab-pane">',{text: 'content'});
    var tab=('<li>',{html: $('<a>',{text: 'Main options'})}).addClass('active').data({target: $main,toggle: 'tab'}).appendTo(tabs);
adding required attribute for example signin form
Merge pull request #10519 from zba/master

changed attr('data-target') to data('target');
Merge pull request #10533 from topsitemakers/master

adding required attribute for example signin form