mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Controlgroup: Fix refresh method tests by adding text content to button
In IE8, the empty elements cause issues. Adding text content makes sense, since empty elements are useless.
This commit is contained in:
parent
81c4fdfecd
commit
9ff3d8fb90
@ -35,7 +35,7 @@ test( "enable", function( assert ) {
|
||||
var tests = {
|
||||
"checkboxradio": "<input type='checkbox'>",
|
||||
"selectmenu": "<select><option>foo</option></select>",
|
||||
"button": "<button>"
|
||||
"button": "<button>button text</button>"
|
||||
},
|
||||
orientations = {
|
||||
"horizontal": [
|
||||
@ -108,7 +108,7 @@ $.each( tests, function( widget, html ) {
|
||||
// Add a label for each element and then append the element to the control group
|
||||
for ( i = 0; i < 4; i++ ) {
|
||||
control = $( html ).attr( "id", "id" + i )
|
||||
.add( $( "<label>" ).clone().attr( "for", "id" + i ) );
|
||||
.add( $( "<label>label text</label>" ).clone().attr( "for", "id" + i ) );
|
||||
|
||||
controls.push( control );
|
||||
element.append( control );
|
||||
|
Loading…
Reference in New Issue
Block a user