<div id="{dialog_name}" title="{title} "><!-- the ' ' after {title} fixes ie8, see http://stackoverflow.com/a/5313137/828717 --> <p><span class="ui-icon ui-icon-{type}"></span>{message}</p> </div>