Dialog: Expanded all self-closing tags for HTML conformance.

This commit is contained in:
Scott González 2009-04-18 15:03:56 +00:00
parent a3c2a255ad
commit 8c5ca934c3

View File

@ -44,7 +44,7 @@ $.widget("ui.dialog", {
title = options.title || self.originalTitle || ' ', title = options.title || self.originalTitle || ' ',
titleId = $.ui.dialog.getTitleId(self.element), titleId = $.ui.dialog.getTitleId(self.element),
uiDialog = (self.uiDialog = $('<div/>')) uiDialog = (self.uiDialog = $('<div></div>'))
.appendTo(document.body) .appendTo(document.body)
.hide() .hide()
.addClass(uiDialogClasses + options.dialogClass) .addClass(uiDialogClasses + options.dialogClass)
@ -84,7 +84,7 @@ $.widget("ui.dialog", {
) )
.prependTo(uiDialog), .prependTo(uiDialog),
uiDialogTitlebarClose = $('<a href="#"/>') uiDialogTitlebarClose = $('<a href="#"></a>')
.addClass( .addClass(
'ui-dialog-titlebar-close ' + 'ui-dialog-titlebar-close ' +
'ui-corner-all' 'ui-corner-all'
@ -113,7 +113,7 @@ $.widget("ui.dialog", {
}) })
.appendTo(uiDialogTitlebar), .appendTo(uiDialogTitlebar),
uiDialogTitlebarCloseText = (self.uiDialogTitlebarCloseText = $('<span/>')) uiDialogTitlebarCloseText = (self.uiDialogTitlebarCloseText = $('<span></span>'))
.addClass( .addClass(
'ui-icon ' + 'ui-icon ' +
'ui-icon-closethick' 'ui-icon-closethick'
@ -121,7 +121,7 @@ $.widget("ui.dialog", {
.text(options.closeText) .text(options.closeText)
.appendTo(uiDialogTitlebarClose), .appendTo(uiDialogTitlebarClose),
uiDialogTitle = $('<span/>') uiDialogTitle = $('<span></span>')
.addClass('ui-dialog-title') .addClass('ui-dialog-title')
.attr('id', titleId) .attr('id', titleId)
.html(title) .html(title)