pub fn from_element<T>( form: &T ) -> Result< Self, FormDataFromElementError > where T: IElement {
        js_try! (
            let form = @{form.as_ref()};

            if ( ! (form instanceof HTMLFormElement) ) {
                throw new TypeError("Argument 1 of FormData::from_element does not implement interface HTMLFormElement.");
            }

            return new FormData(form);
        ).unwrap()
    }
/// Creates a new `FormData` from a form element.
///
/// [(JavaScript docs)](https://developer.mozilla.org/en-US/docs/Web/API/FormData/FormData)
Creates a new `FormData` from a form element.
Creates a new ` FormData ` from a form element .
pub fn from_element<T>( form: &T ) -> Result< Self, FormDataFromElementError > where T: IElement {
        js_try! (
            let form = @{form.as_ref()};
            if ( ! (form instanceof HTMLFormElement) ) {
                throw new TypeError("Argument 1 of FormData::from_element does not implement interface HTMLFormElement.");
            }
            return new FormData(form);
        ).unwrap()
    }
pub fn from_element < T > ( form : & T ) -> Result < Self , FormDataFromElementError > where T : IElement { js_try ! ( let form { form as_ref ( ) } if ( ( form instanceof HTMLFormElement ) ) { throw new TypeError ( " " ) } return new FormData ( form ) ) . unwrap ( ) }
Creates a new `FormData` from a form element.
Creates a new ` FormData ` from a form element .
form
&T
form
&T