File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 249249 ok ( e . toString ( ) . indexOf ( "[checkboxradio]" ) >= 0 , "checkboxradio exception raised" ) ;
250250 }
251251 } ) ;
252+
253+ test ( "nested label checkbox still renders" , function ( ) {
254+ var $checkbox = $ ( "#checkbox-nested-label" ) ;
255+
256+ try {
257+ $checkbox . checkboxradio ( ) ;
258+ } catch ( e ) {
259+ ok ( false , "checkboxradio exception raised: " + e . toString ( ) ) ;
260+ }
261+
262+ ok ( $checkbox . parent ( ) . hasClass ( "ui-checkbox" ) , "enhancement has occured" ) ;
263+ } ) ;
252264} ) ( jQuery ) ;
Original file line number Diff line number Diff line change @@ -167,7 +167,17 @@ <h2 id="qunit-userAgent"></h2>
167167</ div >
168168
169169< div id ="exception-test ">
170- < input type ="checkbox " name ="checkbox-exception " id ="checkbox-exception " class ="custom "/>
170+ < form >
171+ < input type ="checkbox " name ="checkbox-exception " id ="checkbox-exception " class ="custom "/>
172+ </ form >
173+ </ div >
174+
175+ < div id ="nested-label-test ">
176+ < form >
177+ < label for ="checkbox-nested-label ">
178+ < input type ="checkbox " name ="checkbox-nested-label " id ="checkbox-nested-label " class ="custom "/>
179+ </ label >
180+ </ form >
171181</ div >
172182</ body >
173183</ html >
You can’t perform that action at this time.
0 commit comments