Exemplo n.º 1
0
        public FormData(HTMLFormElement form)
        {/* Docs: https://xhr.spec.whatwg.org/#dom-formdata */
            this.form = form;
            var list = FormCommon.Construct_Form_Entry_List(form);

            Entries = list ?? throw new InvalidStateError();
        }
Exemplo n.º 2
0
        public FormData(FormData other)
        {/* Docs: https://xhr.spec.whatwg.org/#dom-formdata */
            form = other.form;
            List <Tuple <string, FormDataEntryValue> > list = null;

            if (other.Entries != null)
            {
                list = new List <Tuple <string, FormDataEntryValue> >(other.Entries);
            }

            Entries = list ?? throw new InvalidStateError();
        }
Exemplo n.º 3
0
 {/* Docs: https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#htmlformcontrolscollection */
     #region Constructors
     public HTMLFormControlsCollection(HTMLFormElement root) : base(root, new FilterFormOwner(root))
     {
     }
Exemplo n.º 4
0
 public FormData(HTMLFormElement form, List <Tuple <string, FormDataEntryValue> > Entries)
 {
     this.form    = form;
     this.Entries = Entries ?? throw new InvalidStateError();
 }