From 01e7a55617b845e667d24a4a3438d347cf90d914 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Sun, 9 Mar 2014 21:37:57 +0200 Subject: [PATCH 1/2] Checkboxradio: Retrieve form ID via .getAttribute() Fixes gh-7223 --- js/widgets/forms/checkboxradio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/widgets/forms/checkboxradio.js b/js/widgets/forms/checkboxradio.js index b7b2de26af4..b6c9d9c2111 100644 --- a/js/widgets/forms/checkboxradio.js +++ b/js/widgets/forms/checkboxradio.js @@ -196,7 +196,7 @@ $.widget( "mobile.checkboxradio", $.extend( { // If we're inside a form if ( form ) { - formId = form.id; + formId = form.getAttribute( "id" ); // If the form has an ID, collect radios scattered throught the document which // nevertheless are part of the form by way of the value of their form attribute From bdd7ae982342e731ca3b6ef6c5d9c8188c7477b5 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Sun, 9 Mar 2014 21:41:06 +0200 Subject: [PATCH 2/2] Checkboxradio: Add hidden input named "id" to the input set test form --- tests/unit/checkboxradio/input-set-tests.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/unit/checkboxradio/input-set-tests.html b/tests/unit/checkboxradio/input-set-tests.html index 67eec48b4f7..3359508b2f4 100644 --- a/tests/unit/checkboxradio/input-set-tests.html +++ b/tests/unit/checkboxradio/input-set-tests.html @@ -32,6 +32,14 @@
+ +