From c6c17328fe46e132750d041426d53f646d4e4676 Mon Sep 17 00:00:00 2001 From: Eric Leung Date: Wed, 30 Mar 2016 22:55:57 -0700 Subject: [PATCH] Change italic method to em in Change Text jQuery - Change italic example from using i to em tag - Add spaces in editor for ease of code addition - Update tests to reflect em tag change --- .../01-front-end-development-certification/jquery.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/seed/challenges/01-front-end-development-certification/jquery.json b/seed/challenges/01-front-end-development-certification/jquery.json index 881b6bca42..3c18c389ff 100644 --- a/seed/challenges/01-front-end-development-certification/jquery.json +++ b/seed/challenges/01-front-end-development-certification/jquery.json @@ -547,7 +547,7 @@ "Using jQuery, you can change the text between the start and end tags of an element. You can even change HTML markup.", "jQuery has a function called .html() that lets you add HTML tags and text within an element. Any content previously within the element will be completely replaced with the content you provide using this function.", "Here's how you would rewrite and italicize the text of our heading:", - "$(\"h3\").html(\"<i>jQuery Playground</i>\");", + "$(\"h3\").html(\"<em>jQuery Playground</em>\");", "jQuery also has a similar function called .text() that only alters text without adding tags.", "Change the button with id target4 by italicizing its text." ], @@ -556,7 +556,7 @@ "fccss", " $(document).ready(function() {", " $(\"#target1\").css(\"color\", \"red\");", - "", + " ", " });", "fcces", "", @@ -585,9 +585,9 @@ "" ], "tests": [ - "assert.isTrue((/#target4<\\/i>/gi).test($(\"#target4\").html()), 'message: Italicize the text in your target4 button by adding HTML tags.');", + "assert.isTrue((/#target4<\\/em>/gi).test($(\"#target4\").html()), 'message: Italicize the text in your target4 button by adding HTML tags.');", "assert($(\"#target4\") && $(\"#target4\").text() === '#target4', 'message: Make sure the text is otherwise unchanged.');", - "assert.isFalse((//gi).test($(\"h3\").html()), 'message: Do not alter any other text.');" + "assert.isFalse((//gi).test($(\"h3\").html()), 'message: Do not alter any other text.');" ], "type": "waypoint", "challengeType": 0,