Merge pull request #9105 from Bouncey/Fix/Link-to-External-Pages-with-Anchor-Elements

Fix/Link to External Pages with Anchor Elements
pull/18182/head
Eric Leung 2016-06-12 16:10:26 -07:00 committed by GitHub
commit 485b7677e7
1 changed files with 1 additions and 1 deletions

View File

@ -1415,7 +1415,7 @@
],
"tests": [
"assert((/cat photos/gi).test($(\"a\").text()), 'message: Your <code>a</code> element should have the <code>anchor text</code> of \"cat photos\".');",
"assert(/http:\\/\\/freecatphotoapp\\.com/gi.test($(\"a\").attr(\"href\")), 'message: You need an <code>a</code> element that links to <code>http&#58;//freecatphotoapp.com</code>');",
"assert(/http:\\/\\/freecatphotoapp\\.com/gi.test($(\"a\").attr(\"href\")), 'message: You need an <code>a</code> element that links to <code>http&#58;//freecatphotoapp<wbr>.com</code>');",
"assert(code.match(/<\\/a>/g) && code.match(/<\\/a>/g).length === code.match(/<a/g).length, 'message: Make sure your <code>a</code> element has a closing tag.');"
],
"type": "waypoint",