Improves 'Add Placeholder Text to a Text Field' and fixes #701

pull/760/head
LumenTeun 2015-05-30 16:59:00 +02:00
parent dbf265bd22
commit 8dda4324f7
1 changed files with 2 additions and 2 deletions

View File

@ -1430,8 +1430,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'>",