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.
typedef (File or USVString or FormData) ControlValue;
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;