HTMLObjectElement.validity

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 Standard
The definition of 'validity' in that specification.
Living Standard Initial definition.

Browser compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
validityChrome Full support 46Edge Full support 12Firefox Full support 1IE Full support YesOpera Full support YesSafari Full support 6WebView Android Full support 46Chrome Android Full support 46Firefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support 5.0

Legend

Full support
Full support