diff --git a/challenges/03-front-end-libraries/jquery.json b/challenges/03-front-end-libraries/jquery.json index 60316bf47a..adea079bed 100644 --- a/challenges/03-front-end-libraries/jquery.json +++ b/challenges/03-front-end-libraries/jquery.json @@ -821,6 +821,7 @@ "$(\"h3\").html(\"<em>jQuery Playground</em>\");", "jQuery also has a similar function called .text() that only alters text without adding tags. In other words, this function will not evaluate any HTML tags passed to it, but will instead treat it as the text you want to replace the existing content with.", "Change the button with id target4 by emphasizing its text.", + "Check this link to know more on the difference between <i> and <em> and their uses.", "Note that while the <i> tag has traditionally been used to emphasize text, it has since been coopted for use as a tag for icons. The <em> tag is now widely accepted as the tag for emphasis. Either will work for this challenge." ], "releasedOn": "November 18, 2015", @@ -857,8 +858,8 @@ "" ], "tests": [ - "assert.isTrue((/|#target4<\\/em>|<\\/i>/gi).test($(\"#target4\").html()), 'message: Emphasize the text in your target4 button by adding HTML tags.');", - "assert($(\"#target4\") && $(\"#target4\").text() === '#target4', 'message: Make sure the text is otherwise unchanged.');", + "assert.isTrue((/|\\s*#target4\\s*<\\/em>|<\\/i>/gi).test($(\"#target4\").html()), 'message: Emphasize the text in your target4 button by adding HTML tags.');", + "assert($(\"#target4\") && $(\"#target4\").text().trim() === '#target4', 'message: Make sure the text is otherwise unchanged.');", "assert.isFalse((/|/gi).test($(\"h3\").html()), 'message: Do not alter any other text.');", "assert(code.match(/\\.html\\(/g), 'message: Make sure you are using .html() and not .text().');", "assert(code.match(/\\$\\(\\s*?(\\\"|\\')#target4(\\\"|\\')\\s*?\\)\\.html\\(/), 'message: Make sure to select button id=\"target4\" with jQuery.');"