Skip to content

Commit

Permalink
Improved typography on 'a more detailed example' (#22497)
Browse files Browse the repository at this point in the history
On the 'a more detailed example' JS code, the showError() function display messages all but the last one referred 'e-mail' as e-mail. 
To standardize the error messages, I suggest changing the 'else if (email.validity.tooShort)' display error message "email" to 'e-mail'.
Just a small improvement.
  • Loading branch information
marcusicaro committed Nov 30, 2022
1 parent 8a7edb1 commit 74e7468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/learn/forms/form_validation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ function showError() {
} else if (email.validity.tooShort) {
// If the data is too short,
// display the following error message.
emailError.textContent = `Email should be at least ${email.minLength} characters; you entered ${email.value.length}.`;
emailError.textContent = `E-mail should be at least ${email.minLength} characters; you entered ${email.value.length}.`;
}

// Set the styling appropriately
Expand Down

0 comments on commit 74e7468

Please sign in to comment.