diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index 22ed2bb18..354c696f7 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.js @@ -83,8 +83,10 @@ $.widget("ui.dialog", { (options.closeOnEscape && ev.keyCode && ev.keyCode == $.keyCode.ESCAPE && self.close()); }) - .attr("role","dialog") - .attr("aria-labelledby", titleId) + .attr({ + role: 'dialog', + 'aria-labelledby': titleId + }) .mouseup(function() { self.moveToTop(); }), diff --git a/ui/ui.progressbar.js b/ui/ui.progressbar.js index 4f4fead64..16b7b8967 100644 --- a/ui/ui.progressbar.js +++ b/ui/ui.progressbar.js @@ -25,10 +25,12 @@ $.widget("ui.progressbar", { this.element .addClass("ui-progressbar") .width(options.width) - .attr("role","progressbar") - .attr("aria-valuemin","0") - .attr("aria-valuemax","100") - .attr("aria-valuenow","0"); + .attr({ + role: "progressbar", + "aria-valuemin": 0, + "aria-valuemax": 100, + "aria-valuenow": 0 + }); $.extend(this, { active: false,