The checkValidity()
method of the HTMLObjectElement
interface returns a Boolean
that always is true, because object objects are never candidates for constraint validation.
Syntax
const valid = HTMLObjectElement.checkValidity();
Parameters
None.
Return value
true
Exceptions
None.
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living StandardThe definition of 'checkValidity' 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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
checkValidity
|
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.checkValidity by Mozilla Contributors is licensed under CC-BY-SA 2.5.