blob: 438c7ad4122726aea1ac62460538a433ebd6cf70 [file] [log] [blame]
// 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
typedef (File or USVString or FormData) ControlValue;
[
Exposed=Window,
RuntimeEnabled=ElementInternals
]
interface ElementInternals {
// Attributes and operations for form-associated custom elements.
[RaisesException] void setFormValue(ControlValue? value, optional ControlValue? state);
[RaisesException] readonly attribute HTMLFormElement? form;
[RaisesException] void setValidity(ValidityStateFlags flags, optional DOMString message, optional Element anchor);
[RaisesException] readonly attribute boolean willValidate;
[RaisesException] readonly attribute ValidityState validity;
[RaisesException, ImplementedAs=ValidationMessageForBinding] readonly attribute DOMString validationMessage;
[RaisesException] boolean checkValidity();
[RaisesException] boolean reportValidity();
[RaisesException] readonly attribute NodeList labels;
};