The validity
read-only property of the HTMLObjectElement
interface returns a ValidityState
with the validity states that this element is in.
Syntax
var ValidityState = HTMLObjectElement.validity;
Value
A ValidityState
object.
Specifications
Specification | Status | Comment |
HTML Living StandardThe definition of 'validity' in that specification. | Living Standard | Initial definition. |
Browser compatibility
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
validity
|
Chrome
Full support 46 |
Edge
Full support 12 |
Firefox
Full support 1 |
IE
Full support Yes |
Opera
Full support Yes |
Safari
Full support 6 |
WebView Android
Full support 46 |
Chrome Android
Full support 46 |
Firefox Android
Full support 4 |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support 5.0 |
Legend
- Full support
- Full support
HTMLObjectElement.validity by Mozilla Contributors is licensed under CC-BY-SA 2.5.