aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.popup.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-07-12 11:36:34 -0400
committerScott González <scott.gonzalez@gmail.com>2011-07-12 11:36:34 -0400
commit0080f2d5813747cbbe44021197e352564e02b782 (patch)
tree9b2ead710771dd942f959577b16d57de23b05d02 /ui/jquery.ui.popup.js
parentda84672db8ad1f3909e645a665e9a9c6c0de0ded (diff)
downloadjquery-ui-0080f2d5813747cbbe44021197e352564e02b782.tar.gz
jquery-ui-0080f2d5813747cbbe44021197e352564e02b782.zip
Use .attr() for boolean ARIA attributes.
Diffstat (limited to 'ui/jquery.ui.popup.js')
-rw-r--r--ui/jquery.ui.popup.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/ui/jquery.ui.popup.js b/ui/jquery.ui.popup.js
index 4c9f20c06..b506a641f 100644
--- a/ui/jquery.ui.popup.js
+++ b/ui/jquery.ui.popup.js
@@ -41,7 +41,7 @@ $.widget( "ui.popup", {
}
this.options.trigger
- .prop( "aria-haspopup", true )
+ .attr( "aria-haspopup", "true" )
.attr( "aria-owns", this.element.attr( "id" ) );
this.element
@@ -118,11 +118,11 @@ $.widget( "ui.popup", {
this.element
.show()
.removeClass( "ui-popup" )
- .removeProp( "aria-hidden" )
- .removeProp( "aria-expanded" );
+ .removeAttr( "aria-hidden" )
+ .removeAttr( "aria-expanded" );
this.options.trigger
- .removeProp( "aria-haspopup" )
+ .removeAttr( "aria-haspopup" )
.removeAttr( "aria-owns" );
if ( this.generatedId ) {
@@ -140,8 +140,8 @@ $.widget( "ui.popup", {
this.element
.show()
- .prop( "aria-hidden", false )
- .prop( "aria-expanded", true )
+ .attr( "aria-hidden", "false" )
+ .attr( "aria-expanded", "true" )
.position( position )
// TODO find a focussable child, otherwise put focus on element, add tabIndex=0 if not focussable
.focus();
@@ -160,8 +160,8 @@ $.widget( "ui.popup", {
close: function( event ) {
this.element
.hide()
- .prop( "aria-hidden", true )
- .prop( "aria-expanded", false );
+ .attr( "aria-hidden", "true" )
+ .attr( "aria-expanded", "false" );
this.options.trigger.attr("tabindex", 0);