diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-07-12 11:36:34 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-07-12 11:36:34 -0400 |
commit | 0080f2d5813747cbbe44021197e352564e02b782 (patch) | |
tree | 9b2ead710771dd942f959577b16d57de23b05d02 /ui/jquery.ui.autocomplete.js | |
parent | da84672db8ad1f3909e645a665e9a9c6c0de0ded (diff) | |
download | jquery-ui-0080f2d5813747cbbe44021197e352564e02b782.tar.gz jquery-ui-0080f2d5813747cbbe44021197e352564e02b782.zip |
Use .attr() for boolean ARIA attributes.
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 3f5e2d10a..59caf625d 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -59,9 +59,9 @@ $.widget( "ui.autocomplete", { // TODO verify these actually work as intended .attr({ role: "textbox", - "aria-autocomplete": "list" + "aria-autocomplete": "list", + "aria-haspopup": "true" }) - .prop( "aria-haspopup", true ) .bind( "keydown.autocomplete", function( event ) { if ( self.options.disabled || self.element.prop( "readonly" ) ) { suppressKeyPress = true; @@ -268,7 +268,7 @@ $.widget( "ui.autocomplete", { .removeAttr( "autocomplete" ) .removeAttr( "role" ) .removeAttr( "aria-autocomplete" ) - .removeProp( "aria-haspopup" ); + .removeAttr( "aria-haspopup" ); this.menu.element.remove(); }, |