Merge pull request #760 from LumenTeun/lumenteun-701
Improves 'Add Placeholder Text to a Text Field' and fixes #701pull/768/head
commit
d4eed5b514
|
@ -1495,8 +1495,8 @@
|
||||||
"For example: <code><input type='text' placeholder='this is placeholder text'></code>"
|
"For example: <code><input type='text' placeholder='this is placeholder text'></code>"
|
||||||
],
|
],
|
||||||
"tests": [
|
"tests": [
|
||||||
"assert($('[placeholder]').length > 0, 'Your text field should have a placeholder attribute.')",
|
"assert($('input[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').attr('placeholder') === 'cat photo URL', 'Your placeholder field should have the value of \"cat photo URL\".')"
|
||||||
],
|
],
|
||||||
"challengeSeed": [
|
"challengeSeed": [
|
||||||
"<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>",
|
"<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>",
|
||||||
|
|
Loading…
Reference in New Issue