Merge pull request #1612 from ahstro/ahstro-1467

Improve 'Turn an image to a Link'-waypoint
pull/18182/head
Berkeley Martinez 2015-08-10 20:25:54 -07:00
commit 0420624d6a
1 changed files with 1 additions and 1 deletions

View File

@ -1258,8 +1258,8 @@
"Once you've done this, hover over your image with your cursor. Your cursor's normal pointer should become the link clicking pointer. The photo is now a link."
],
"tests": [
"assert($('a').children('img').length > 0, 'Nest your <code>img</code> element within an <code>a</code> element.')",
"assert(new RegExp('#').test($('a').children('img').parent().attr('href')), 'Your <code>a</code> element should be a dead link with a <code>href</code> attribute set to \"#\".')",
"assert($('a').children('img').length > 0, 'Nest your image element within an <code>a</code> element.')",
"assert(editor.match(/<\\/a>/g) && editor.match(/<a/g) && editor.match(/<\\/a>/g).length === editor.match(/<a/g).length, 'Make sure each of your <code>a</code> elements has a closing tag.')"
],
"challengeSeed": [