The checkValidity() method of the HTMLObjectElement interface checks if the element is valid, but always returns true because <object> elements are never candidates for constraint validation.
checkValidity()None.
A boolean value, true.
In the following example, calling checkValidity() returns true.
const element = document.getElementById("myObjectElement");
console.log(element.checkValidity());