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