public static function parse($html, $xpath) {
		$doc = new \DOMDocument();
		$doc->loadHTML($html);
		$domxpath = new \DOMXPath($doc);
		$node = $domxpath->evaluate($xpath)->item(0);

		return new static($node);
	}
public static function parse($html, $xpath) {
		$doc = new \DOMDocument();
		$doc->loadHTML($html);
		$domxpath = new \DOMXPath($doc);
		$node = $domxpath->evaluate($xpath)->item(0);

		return new static($node);
	}
public static function parse ( $ html , $ xpath ) { $ doc = new \ DOMDocument ( ) ; $ doc -> loadHTML ( $ html ) ; $ domxpath = new \ DOMXPath ( $ doc ) ; $ node = $ domxpath -> evaluate ( $ xpath ) -> item ( 0 ) ; return new static ( $ node ) ; }
Parse the HTML form.
@param  string $html
@param  string $xpath xpath to form
Parse the HTML form .