--- title: HTMLObjectElement.checkValidity slug: Web/API/HTMLObjectElement/checkValidity tags: - API - HTML DOM - HTMLObjectElement - Method - NeedsExample - Reference - checkValidity - checkValidity() - メソッド translation_of: Web/API/HTMLObjectElement/checkValidity --- <p>{{APIRef("HTML DOM")}}</p> <p class="summary"><strong><code>checkValidity()</code></strong> は {{domxref("HTMLObjectElement")}} インターフェイスのメソッドで、常に true である {{jsxref("Boolean")}} を返します。 object オブジェクトは制約の検証の候補にはならないからです。</p> <h2 id="Syntax" name="Syntax">構文</h2> <pre class="syntaxbox notranslate">const valid = HTMLObjectElement.checkValidity();</pre> <h3 id="Parameters" name="Parameters">引数</h3> <p>なし。</p> <h3 id="Return_value" name="Return_value">返値</h3> <p><code>true</code></p> <h3 id="Exceptions" name="Exceptions">例外</h3> <p>なし。</p> <h2 id="Specifications" name="Specifications">仕様書</h2> <table class="standard-table"> <thead> <tr> <th scope="col">仕様書</th> <th scope="col">状態</th> <th scope="col">備考</th> </tr> </thead> <tbody> <tr> <td>{{SpecName('HTML WHATWG','#dom-cva-checkvalidity','checkValidity')}}</td> <td>{{Spec2('HTML WHATWG')}}</td> <td>初回定義</td> </tr> </tbody> </table> <h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> <p>{{Compat("api.HTMLObjectElement.checkValidity")}}</p>