From d3623577fb79691db537e62d21c84a6301f644a2 Mon Sep 17 00:00:00 2001 From: Aniruddh Agarwal Date: Mon, 14 Sep 2015 19:08:36 +0800 Subject: [PATCH] Fix waypoint description to be in accordance with W3C rec --- challenges/html5-and-css.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/challenges/html5-and-css.json b/challenges/html5-and-css.json index 1871088811..6d75e39b75 100644 --- a/challenges/html5-and-css.json +++ b/challenges/html5-and-css.json @@ -1134,14 +1134,14 @@ "\"a", "Here's an example: <p>Here's a <a href=\"http://freecodecamp.com\"> link to Free Code Camp</a> for you to follow.</p>.", "Nesting just means putting one element inside of another element.", - "Now nest your existing a element within a new p element so that the surrounding paragraph says \"click here for cat photos\", but where only \"cat photos\" is a link, and the rest of the text is rest is plain text." + "Now nest your existing a element within a new p element so that the surrounding paragraph says \"View more cat photos\", but where only \"cat photos\" is a link, and the rest of the text is rest is plain text." ], "tests": [ "assert($(\"a\").attr(\"href\").match(/freecatphotoapp.com/gi).length > 0, 'You need an a element that links to \"freecatphotoapp.com\".')", "assert($(\"a\").text().match(/cat\\sphotos/gi), 'Your a element should have the anchor text of \"cat photos\"')", "assert($(\"p\") && $(\"p\").length > 2, 'Create a new p element around your a element.')", "assert($(\"a[href=\\\"http://www.freecatphotoapp.com\\\"]\").parent().is(\"p\"), 'Your a element should be nested within your new p element.')", - "assert($(\"p\").text().match(/click\\shere\\sfor/gi), 'Your p element should have the text \"click here for\".')", + "assert($(\"p\").text().match(/View\\smore/gi), 'Your p element should have the text \"View more\".')", "assert(editor.match(/<\\/p>/g) && editor.match(/

/g).length === editor.match(/

p elements has a closing tag.')", "assert(editor.match(/<\\/a>/g) && editor.match(//g).length === editor.match(/a elements has a closing tag.')" ],