HTMLObjectElement:validity 属性

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since December 2018.

HTMLObjectElement 接口的 validity 只读属性返回一个具有该元素所在的有效状态的 ValidityState

一个 ValidityState 对象。

规范

Specification
HTML Standard
# dom-cva-validity

浏览器兼容性

BCD tables only load in the browser