create method

create

Creates a new FormEditor based on HTMLFormElement.

Returns

Return a new instance of the FormEditor class

def create(self, form):
    ...
ParameterTypeDescription
formHTMLFormElementThe html form element

create

Creates a new FormEditor based on HTMLFormElement selected from the HTMLDocument.forms collection by index.

Returns

Return a new instance of the FormEditor class

def create(self, document, index):
    ...
ParameterTypeDescription
documentHTMLDocumentThe document.
indexintThe index inside the forms collection.

Exceptions

ExceptionDescription
DOMExceptionThe exception is occured if index out of the range.

create

Creates a new FormEditor based on HTMLFormElement selected from the document by id.

Returns

Return a new instance of the FormEditor class

def create(self, document, id):
    ...
ParameterTypeDescription
documentHTMLDocumentThe document.
idstrThe identifier.

Exceptions

ExceptionDescription
DOMExceptionThe exception is occured if there is no element by specified Id or element is not a form type.

See Also