Skip to content

Commit

Permalink
Dialog: add required closing tag </button>. Fixes #8639 - jQuery 1.9.…
Browse files Browse the repository at this point in the history
…0 dialog on a XHTML page is broken if buttons are defined
  • Loading branch information
rdworth committed Oct 9, 2012
1 parent 7756834 commit 1e6e4ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.dialog.js
Expand Up @@ -364,7 +364,7 @@ $.widget("ui.dialog", {
props = $.isFunction( props ) ?
{ click: props, text: name } :
props;
var button = $( "<button type='button'>" )
var button = $( "<button type='button'></button>" )
.attr( props, true )
.unbind( "click" )
.click(function() {
Expand Down

0 comments on commit 1e6e4ce

Please sign in to comment.