| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // https://docs.google.com/document/d/1JO8puctCSpW-ZYGU8lF-h4FWRIDQNDVexzHoOQ2iQmY/edit?pli=1#heading=h.pjt9nhs3gu3k |
| |
| [ |
| Exposed=Window, |
| RuntimeEnabled=ElementInternals |
| ] |
| interface ElementInternals { |
| // Attributes and operations for form-associated custom elements. |
| [RaisesException] void setFormValue(FormDataEntryValue value, optional FormData entrySource); |
| |
| [RaisesException] readonly attribute HTMLFormElement? form; |
| |
| [RaisesException] void setValidity(ValidityStateFlags flags, optional DOMString message); |
| [RaisesException] readonly attribute boolean willValidate; |
| [RaisesException] readonly attribute ValidityState validity; |
| [RaisesException, ImplementedAs=ValidationMessageForBinding] readonly attribute DOMString validationMessage; |
| [RaisesException] boolean checkValidity(); |
| [RaisesException] boolean reportValidity(); |
| |
| readonly attribute NodeList labels; |
| }; |
| |