Merge pull request #8901 from Bouncey/FIX/Change-Text-Inside-an-Element-Using-jQuery

FIX/Change Text Inside an Element Using jQuery
pull/18182/head
Eric Leung 2016-06-12 16:26:35 -07:00 committed by GitHub
commit 1ad7fef5d4
1 changed files with 2 additions and 1 deletions

View File

@ -665,7 +665,8 @@
"assert.isTrue((/<em>#target4<\\/em>/gi).test($(\"#target4\").html()), 'message: Emphasize the text in your <code>target4</code> button by adding HTML tags.');",
"assert($(\"#target4\") && $(\"#target4\").text() === '#target4', 'message: Make sure the text is otherwise unchanged.');",
"assert.isFalse((/<em>/gi).test($(\"h3\").html()), 'message: Do not alter any other text.');",
"assert(code.match(/\\.html\\(/g), 'message: Make sure you are using <code>.html()</code> and not <code>.text()</code>.');"
"assert(code.match(/\\.html\\(/g), 'message: Make sure you are using <code>.html()</code> and not <code>.text()</code>.');",
"assert(code.match(/\\$\\(\\s*?(\\\"|\\')#target4(\\\"|\\')\\s*?\\)\\.html\\(/), 'message: Make sure to select <code>button id=\"target4\"</code> with jQuery.');"
],
"type": "waypoint",
"challengeType": 0,