HTMLObjectElement: checkValidity() メソッド

Baseline 2023

Newly available

Since March 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

checkValidity()HTMLObjectElement インターフェイスのメソッドで、常に真である論理値を返します。なぜなら、object のオブジェクトは制約検証の候補になることがないからです。

構文

js
checkValidity()

引数

なし。

返値

true

例外

なし。

仕様書

Specification
HTML Standard
# dom-cva-checkvalidity-dev

ブラウザーの互換性

BCD tables only load in the browser