"Live region for multiple values" );
});
+test( "ARIA, init on detached input", function() {
+ expect( 1 );
+ var element = $( "<input>" ).autocomplete({
+ source: [ "java", "javascript" ]
+ }),
+ liveRegion = element.autocomplete( "instance" ).liveRegion;
+ equal( liveRegion.parent().length, 1, "liveRegion must have a parent" );
+});
+
test( ".replaceWith() (#9172)", function() {
expect( 1 );
"aria-live": "polite"
})
.addClass( "ui-helper-hidden-accessible" )
- .insertBefore( this.element );
+ .appendTo( this.document[ 0 ].body );
// turning off autocomplete prevents the browser from remembering the
// value when navigating through history, so we re-enable autocomplete