Back to Content

HTMLOutputElement: reportValidity() method

files/en-us/web/api/htmloutputelement/reportvalidity/index.md

latest897 B
Original Source

{{APIRef("HTML DOM")}}

The reportValidity() method of the {{domxref("HTMLOutputElement")}} interface performs the same validity checking steps as the {{domxref("HTMLOutputElement.checkValidity", "checkValidity()")}} method. It always returns true because {{HTMLElement("output")}} elements are never candidates for constraint validation.

Syntax

js-nolint
reportValidity()

Parameters

None.

Return value

A boolean value, true.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also