From df85c7d6b7b0f09b65850513645cc337f54dcd6a Mon Sep 17 00:00:00 2001 From: bugron Date: Wed, 26 Aug 2015 11:51:36 +0400 Subject: [PATCH] Fixes indoor, personality and label issues --- challenges/html5-and-css.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/challenges/html5-and-css.json b/challenges/html5-and-css.json index e55619b87b..0463430e38 100644 --- a/challenges/html5-and-css.json +++ b/challenges/html5-and-css.json @@ -1998,8 +1998,8 @@ ], "tests": [ "assert($('input[type=\"radio\"]').length > 1, 'Your page should have two radio button elements.')", - "assert($('input[type=\"radio\"]:nth-child(1)').attr('name') === 'indoor-outdoor', 'Give your radio buttons the name attribute of indoor-outdoor.')", - "assert($(\"label\").length > 1, 'Each of your two radio button elements should be nested in a label element.')", + "assert($('label > input[type=\"radio\"]').filter(\"[name='indoor-outdoor']\").length > 1, 'Give your radio buttons the name attribute of indoor-outdoor.')", + "assert($('label > input[type=\"radio\"]:only-child').length > 1, 'Each of your two radio button elements should be nested in its own label element.')", "assert(editor.match(/<\\/label>/g) && editor.match(/