The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mozilla::DOM::HTMLFormElement

Mozilla::DOM::HTMLFormElement is a wrapper around an instance of Mozilla's nsIDOMHTMLFormElement interface. This class inherits from HTMLElement.

 * The nsIDOMHTMLFormElement interface is the interface to a [X]HTML
 * form element.
 *
 * For more information on this interface please see
 * http://www.w3.org/TR/DOM-Level-2-HTML/
 *
 * @status FROZEN

CLASS METHODS

$iid = Mozilla::DOM::HTMLFormElement->GetIID()

Pass this to QueryInterface.

METHODS

$acceptcharset = $htmlformelement->GetAcceptCharset()

$htmlformelement->SetAcceptCharset($acceptcharset)

    • $acceptcharset (string)

$action = $htmlformelement->GetAction()

$htmlformelement->SetAction($action)

    • $action (string)

$enctype = $htmlformelement->GetEnctype()

$htmlformelement->SetEnctype($enctype)

    • $enctype (string)

$method = $htmlformelement->GetMethod()

$htmlformelement->SetMethod($method)

    • $method (string)

$name = $htmlformelement->GetName()

$htmlformelement->SetName($name)

    • $name (string)

$target = $htmlformelement->GetTarget()

$htmlformelement->SetTarget($target)

    • $target (string)

$elements = $htmlformelement->GetElements()

$elements is a Mozilla::DOM::HTMLCollection.

In list context, returns a list of Mozilla::DOM::Node. (See DOM 2 HTML spec.) I'm guessing you can QueryInterface this to HTMLElement, but I leave that to you:

  $iid = Mozilla::DOM::HTMLElement->GetIID;
  $htmlelement = $node->QueryInterface($iid);

$length = $htmlformelement->GetLength()

Number of elements returned by GetElements.

$htmlformelement->Reset()

Reset inputs to their default values.

$htmlformelement->Submit()

Submits the <form>, but doesn't trigger the onSubmit event.

SEE ALSO

Mozilla::DOM

COPYRIGHT

Copyright (C) 2005-2007, Scott Lanning

This software is licensed under the LGPL. See Mozilla::DOM for a full notice.