create_new method

create_new

Creates a new HTMLFormElement and associated it with FormEditor. HTMLFormElement is created in the detached from the document state; in order to attach it to the document, please select proper location and use Node.append_child method.

Returns

Return a new instance of the FormEditor class

def create_new(self, document):
    ...
ParameterTypeDescription
documentHTMLDocumentThe HTMLDocument.

See Also