Instance Methodscinfu.swiftsoup 2.8.7SwiftSoup
copy(parent:)
FormElement.swift:124override func copy(parent: Node?) -> Node
override func copy(parent: Node?) -> Node
import SwiftSoup
class FormElement
A HTML Form Element provides ready access to the form fields/controls that are associated with it. It also allows a form to easily be submitted.
class Node
override func copy(parent: Node?) -> Node
override init(_ tag: Tag, _ baseUri: [UInt8])
Create a new, standalone form element.
override init(_ tag: Tag, _ baseUri: [UInt8], _ attributes: Attributes)
Create a new, standalone form element.
@discardableResult func addElement(_ element: Element) -> FormElement
Add a form control element to this form.
override func copy(clone: Node, parent: Node?) -> Node
override func copy(with zone: NSZone? = nil) -> Any
Prepare to submit this form. A Connection object is created with the request set up from the form values. You can then set up other options (like user-agent, timeout, cookies), then execute it.
func elements() -> Elements
Get the list of form control elements associated with this form.