aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLucas Banegas <[email protected]>2017-08-06 23:16:49 -0300
committerGitHub <[email protected]>2017-08-06 23:16:49 -0300
commit688b6260210bbd33b55e27767d91d4743c495d00 (patch)
treed3391dccd773c17930a46cdc6e327bf405b3f136 /docs
parent2f4ddb8ed91c5bb53b9d91a7a39cb15a1c3c6962 (diff)
parent8606c0d3ec4bb1861631990b20387498c982b335 (diff)
downloadbootstrap-688b6260210bbd33b55e27767d91d4743c495d00.tar.xz
bootstrap-688b6260210bbd33b55e27767d91d4743c495d00.zip
Merge branch 'v4-dev' into v4-dev
Diffstat (limited to 'docs')
-rw-r--r--docs/4.0/components/forms.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/4.0/components/forms.md b/docs/4.0/components/forms.md
index 22c06b923..6abe03e58 100644
--- a/docs/4.0/components/forms.md
+++ b/docs/4.0/components/forms.md
@@ -682,7 +682,7 @@ Here's how form validation works with Bootstrap:
- HTML form validation is applied via CSS's two pseudo-classes, `:invalid` and `:valid`. It applies to `<input>`, `<select>`, and `<textarea>` elements.
- Bootstrap scopes the `:invalid` and `:valid` styles to parent `.was-validated` class, usually applied to the `<form>`. Otherwise, any required field without a value shows up as invalid on page load. This way, you may choose when to activate them (typically after form submission is attempted).
- As a fallback, `.is-invalid` and `.is-valid` classes may be used instead of the pseudo-classes for [server side validation](#server-side). They do not require a `.was-validated` parent class.
-- Due to constaints in how CSS works, we cannot (at present) apply styles to a `<label>` that comes before a form control in the DOM without the help of custom JavaScript.
+- Due to constraints in how CSS works, we cannot (at present) apply styles to a `<label>` that comes before a form control in the DOM without the help of custom JavaScript.
- All modern browsers support the [constraint validation API](https://www.w3.org/TR/html5/forms.html#the-constraint-validation-api), a series of JavaScript methods for validating form controls.
- Feedback messages may utilize the [browser defaults](#browser-default) (different for each browser, and unstylable via CSS) or our custom feedback styles with additional HTML and CSS.
- You may provide custom validity messages with `setCustomValidity` in JavaScript.