Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit bdd7ae9

Browse files
author
Gabriel Schulhof
committed
Checkboxradio: Add hidden input named "id" to the input set test form
1 parent 01e7a55 commit bdd7ae9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/unit/checkboxradio/input-set-tests.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@
3232
<div data-nstest-role="page">
3333
<label>Radio<input id="radio:1" type="radio" name="group1"></label>
3434
<form id="the-[form]">
35+
<!--
36+
https://github.com/jquery/jquery-mobile/issues/7223
37+
Adding the below hidden input will cause code that accesses the form attribute via
38+
form.id to return this input, rather than the ID of the form. The presence of this
39+
input constitutes a test against that kind of code. The correct way to retrieve the
40+
id of a form is form.getAttribute( "id" ).
41+
-->
42+
<input type="hidden" name="id" value="">
3543
<label>Radio<input id="radio:2" type="radio" name="group1"></label>
3644
<label>Radio<input id="radio:7" type="radio" name="group1" form="the-'other'-form"></label>
3745
</form>

0 commit comments

Comments
 (0)