* Set the valid state for the given element. * Note: This does not work with contenteditable elements * * @param {HTMLElement|HTMLInputElement} element
(element)
| 1305 | * @param {HTMLElement|HTMLInputElement} element |
| 1306 | */ |
| 1307 | static setValidState(element) { |
| 1308 | element.setCustomValidity(''); |
| 1309 | } |
| 1310 | |
| 1311 | /** |
| 1312 | * This clone the given object, and return it. |