If it's appearing as an empty object, it's likely because only enumerable
properties are being rendered, which ValidityState
's properties don't seem to be in Firefox.
But, you should still be able to access individual properties:
console.log(input.validity.valid); // true/false
console.log(input.validity.tooLong); // true/false
// etc.