type

  nsIDOMDocument = interface(nsIDOMNode)
  ['{5c3bff4d-ae7f-4c93-948c-519589672c30}']
    function Getdoctype(): nsIDOMDocumentType; safecall;
    property doctype : nsIDOMDocumentType read Getdoctype;
    function Getimplementation(): nsIDOMDOMImplementation; safecall;
    property animplementation : nsIDOMDOMImplementation read Getimplementation;
    function GetdocumentElement(): nsIDOMElement; safecall;
    property documentElement : nsIDOMElement read GetdocumentElement;
    function createElement(atagName: DOMString) : nsIDOMElement; safecall;
    function createDocumentFragment() : nsIDOMDocumentFragment; safecall;
    function createTextNode(adata: DOMString) : nsIDOMText; safecall;
    function createComment(adata: DOMString) : nsIDOMComment; safecall;
    function createCDATASection(adata: DOMString) : nsIDOMCDATASection; safecall;
    function createProcessingInstruction(atarget: DOMString; adata: DOMString) : nsIDOMProcessingInstruction; safecall;
    function createAttribute(aname: DOMString) : nsIDOMAttr; safecall;
    function getElementsByTagName(atagname: DOMString) : nsIDOMNodeList; safecall;
    function importNode(animportedNode: nsIDOMNode; adeep: longbool) : nsIDOMNode; safecall;
    function createElementNS(anamespaceURI: DOMString; aqualifiedName: DOMString) : nsIDOMElement; safecall;
    function createAttributeNS(anamespaceURI: DOMString; aqualifiedName: DOMString) : nsIDOMAttr; safecall;
    function getElementsByTagNameNS(anamespaceURI: DOMString; alocalName: DOMString) : nsIDOMNodeList; safecall;
    function getElementById(anelementId: DOMString) : nsIDOMElement; safecall;
    procedure GetinputEncoding( result_: DOMString); safecall;
    procedure GetdocumentURI( result_: DOMString); safecall;
    function adoptNode(asource: nsIDOMNode) : nsIDOMNode; safecall;
    function createRange() : nsIDOMRange; safecall;
    function createNodeIterator(aroot: nsIDOMNode; awhatToShow: idlulong; afilter: nsIDOMNodeFilter; anentityReferenceExpansion: longbool) : nsIDOMNodeIterator; safecall;
    function createTreeWalker(aroot: nsIDOMNode; awhatToShow: idlulong; afilter: nsIDOMNodeFilter; anentityReferenceExpansion: longbool) : nsIDOMTreeWalker; safecall;
    function createEvent(aneventType: DOMString) : nsIDOMEvent; safecall;
    function GetdefaultView(): nsIDOMWindow; safecall;
    property defaultView : nsIDOMWindow read GetdefaultView;
    procedure GetcharacterSet( result_: DOMString); safecall;
    procedure Getdir( result_: DOMString); safecall;
    procedure Setdir(adir: DOMString); safecall;
    function Getlocation(): nsIDOMLocation; safecall;
    property location : nsIDOMLocation read Getlocation;
    procedure Gettitle( result_: DOMString); safecall;
    procedure Settitle(atitle: DOMString); safecall;
    procedure GetreadyState( result_: DOMString); safecall;
    procedure GetlastModified( result_: DOMString); safecall;
    procedure Getreferrer( result_: DOMString); safecall;
    function hasFocus() : longbool; safecall;
    function GetactiveElement(): nsIDOMElement; safecall;
    property activeElement : nsIDOMElement read GetactiveElement;
    function getElementsByClassName(aclasses: DOMString) : nsIDOMNodeList; safecall;
    function GetstyleSheets(): nsIDOMStyleSheetList; safecall;
    property styleSheets : nsIDOMStyleSheetList read GetstyleSheets;
    procedure GetpreferredStyleSheetSet( result_: DOMString); safecall;
    procedure GetselectedStyleSheetSet( result_: DOMString); safecall;
    procedure SetselectedStyleSheetSet(aselectedStyleSheetSet: DOMString); safecall;
    procedure GetlastStyleSheetSet( result_: DOMString); safecall;
    function GetstyleSheetSets(): nsIDOMDOMStringList; safecall;
    property styleSheetSets : nsIDOMDOMStringList read GetstyleSheetSets;
    procedure enableStyleSheetsForSet(aname: DOMString); safecall;
    function elementFromPoint(ax: idlfloat; ay: idlfloat) : nsIDOMElement; safecall;
    procedure GetcontentType( result_: DOMString); safecall;
    function GetmozSyntheticDocument(): longbool; safecall;
    property mozSyntheticDocument : longbool read GetmozSyntheticDocument;
    function GetcurrentScript(): nsIDOMElement; safecall;
    property currentScript : nsIDOMElement read GetcurrentScript;
    procedure releaseCapture(); safecall;
    procedure mozSetImageElement(anaImageElementId: DOMString; anaImageElement: nsIDOMElement); safecall;
    function GetmozFullScreenElement(): nsIDOMHTMLElement; safecall;
    property mozFullScreenElement : nsIDOMHTMLElement read GetmozFullScreenElement;
    procedure mozCancelFullScreen(); safecall;
    function GetmozFullScreen(): longbool; safecall;
    property mozFullScreen : longbool read GetmozFullScreen;
    function GetmozFullScreenEnabled(): longbool; safecall;
    property mozFullScreenEnabled : longbool read GetmozFullScreenEnabled;
    function Getonreadystatechange(): jsval; safecall;
    procedure Setonreadystatechange(aonreadystatechange: jsval); safecall;
    property onreadystatechange : jsval read Getonreadystatechange write Setonreadystatechange;
    function Getonmouseenter(): jsval; safecall;
    procedure Setonmouseenter(aonmouseenter: jsval); safecall;
    property onmouseenter : jsval read Getonmouseenter write Setonmouseenter;
    function Getonmouseleave(): jsval; safecall;
    procedure Setonmouseleave(aonmouseleave: jsval); safecall;
    property onmouseleave : jsval read Getonmouseleave write Setonmouseleave;
    function GetmozHidden(): longbool; safecall;
    property mozHidden : longbool read GetmozHidden;
    procedure GetmozVisibilityState( result_: DOMString); safecall;

  end;

