Visit Mozilla.org

nsIXFormsNSInstanceElement

From MDC

Contents

[edit] Summary

nsIXFormsNSInstanceElement is implemented by all XForms <instance/> elements, defining Mozilla extensions.

nsIXFormsNSInstanceElement is defined in extensions/xforms/nsIXFormsNSInstanceElement.idl. It is scriptable and is experimental (meaning it is very likely to change in future).

[edit] Interface Code

[scriptable, uuid(80669b92-8331-4f92-aaf8-06e80e6827b3)]
interface nsIXFormsNSInstanceElement : nsISupports
{
  nsIDOMDocument getInstanceDocument();
};

[edit] Methods

[edit] getInstanceDocument

 nsIDOMDocument getInstanceDocument();

getInstanceDocument returns a DOM Document that corresponds to the instance data associated with the instance element. Essentially it is just a shortcut to nsIXFormsModelElement::getInstanceDocument() for the given instance element.

[edit] Related Interfaces

[edit] Example Code

None.