Merge pull request #760 from LumenTeun/lumenteun-701

Improves 'Add Placeholder Text to a Text Field' and fixes #701
pull/768/head
Quincy Larson 2015-05-30 20:12:30 -07:00
commit d4eed5b514
1 changed files with 2 additions and 2 deletions

View File

@ -1495,8 +1495,8 @@
"For example: <code>&#60;input type='text' placeholder='this is placeholder text'&#62;</code>"
],
"tests": [
"assert($('[placeholder]').length > 0, 'Your text field should have a placeholder attribute.')",
"assert(/url/gi.test($('input').attr('placeholder')), 'Your placeholder field should have the value of \"cat photo URL\".')"
"assert($('input[placeholder]').length > 0, 'Your text field should have a placeholder attribute.')",
"assert($('input').attr('placeholder') === 'cat photo URL', 'Your placeholder field should have the value of \"cat photo URL\".')"
],
"challengeSeed": [
"<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>",