tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

HTMLFormElement.webidl (2187B)


      1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      4 * You can obtain one at http://mozilla.org/MPL/2.0/.
      5 *
      6 * The origin of this IDL file is
      7 * http://www.whatwg.org/specs/web-apps/current-work/#htmlformelement
      8 *
      9 * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
     10 * Opera Software ASA. You are granted a license to use, reproduce
     11 * and create derivative works of this document.
     12 */
     13 
     14 [LegacyOverrideBuiltIns, LegacyUnenumerableNamedProperties,
     15 Exposed=Window]
     16 interface HTMLFormElement : HTMLElement {
     17  [HTMLConstructor] constructor();
     18 
     19           [CEReactions, Pure, SetterThrows]
     20           attribute DOMString acceptCharset;
     21           [CEReactions, Pure, SetterThrows]
     22           attribute DOMString action;
     23           [CEReactions, Pure, SetterThrows]
     24           attribute DOMString autocomplete;
     25           [CEReactions, Pure, SetterThrows]
     26           attribute DOMString enctype;
     27           [CEReactions, Pure, SetterThrows]
     28           attribute DOMString encoding;
     29           [CEReactions, Pure, SetterThrows]
     30           attribute DOMString method;
     31           [CEReactions, Pure, SetterThrows]
     32           attribute DOMString name;
     33           [CEReactions, Pure, SetterThrows]
     34           attribute boolean noValidate;
     35           [CEReactions, Pure, SetterThrows]
     36           attribute DOMString target;
     37           [CEReactions, Pure, SetterThrows]
     38           attribute DOMString rel;
     39           [PutForwards=value]
     40           readonly attribute DOMTokenList relList;
     41 
     42  [SameObject]
     43  readonly attribute HTMLFormControlsCollection elements;
     44  [Pure]
     45  readonly attribute long length;
     46 
     47  getter Element (unsigned long index);
     48  // TODO this should be: getter (RadioNodeList or HTMLInputElement or HTMLImageElement) (DOMString name);
     49  getter nsISupports (DOMString name);
     50 
     51  [Throws]
     52  undefined submit();
     53  [Throws]
     54  undefined requestSubmit(optional HTMLElement? submitter = null);
     55  [CEReactions]
     56  undefined reset();
     57  boolean checkValidity();
     58  boolean reportValidity();
     59 };