4 <meta charset="UTF-8" />
5 <title>jQuery Mobile Checkboxradio Input Set Test Suite</title>
7 <link rel="stylesheet" href="../../../../../../../libs/qunit-1.11.0.css">
8 <script src="../../../../../../../libs/jquery.js"></script>
9 <script src="../../../../../../../libs/qunit-1.11.0.js"
10 type="text/javascript"></script>
11 <script src="../../../../../../../libs/support.js"></script>
12 <script src="../../../../../../../libs/jquery.testHelper.js"></script>
13 <script src="../../../../../../../libs/dist/js/tau.js"></script>
14 <script src="input_set_tests_core.js"></script>
18 <div id="qunit"></div>
20 <div data-nstest-role="page">
21 <label>Radio<input id="radio:1" type="radio" name="group1"></label>
22 <form id="the-[form]">
24 https://github.com/jquery/jquery-mobile/issues/7223
25 Adding the below hidden input will cause code that accesses the form attribute via
26 form.id to return this input, rather than the ID of the form. The presence of this
27 input constitutes a test against that kind of code. The correct way to retrieve the
28 id of a form is form.getAttribute( "id" ).
30 <input type="hidden" name="id" value="">
31 <label>Radio<input id="radio:2" type="radio" name="group1"></label>
32 <label>Radio<input id="radio:7" type="radio" name="group1" form="the-'other'-form"></label>
34 <label>Radio<input id="radio:3" type="radio" name="group1" form="the-[form]"></label>
35 <form id="the-'other'-form">
36 <label>Radio<input id="radio:6" type="radio" name="group1" form="the-[form]"></label>
37 <label>Radio<input id="radio:4" type="radio" name="group1"></label>
40 <!-- radio5 (below) is not supposed to have a name -->
41 <label>Radio<input id="radio:5" type="radio"></label>
44 <label>Radio<input id="radio:8" type="radio" name="group1"></label>