Linux Windows
 An interface for in-process accessibility clients
 that wish to retrieve information about a document.
 When accessibility is turned on in Gecko,
 there is an nsIAccessibleDocument for each document
 whether it is XUL, HTML or whatever.
 You can QueryInterface to nsIAccessibleDocument from
 the nsIAccessible or nsIAccessNode for the root node
 of a document. You can also get one from 
 nsIAccessNode::GetAccessibleDocument() or 
 nsIAccessibleEvent::GetAccessibleDocument()

 @status UNDER_REVIEW
[scriptable, uuid(b7ae45bd-21e9-4ed5-a67e-86448b25d56b)]
interface nsIAccessibleDocument : nsISupports

Attributes

 The doc type of the document, as specified in the document.
readonly attribute AString docType
 The nsIDOMDocument interface associated with this document.
readonly attribute nsIDOMDocument document
 The mime type of the document
readonly attribute AString mimeType
 The title of the document, as specified in the document.
readonly attribute AString title
 The URL of the document
readonly attribute AString URL
 The nsIDOMWindow that the document resides in.
readonly attribute nsIDOMWindow window
 The window handle for the OS window the document is being displayed in.
 For example, in Windows you can static cast it to an HWND.
[noscript] readonly attribute voidPtr windowHandle

Methods

 Returns the first accessible parent of a DOM node.
 Guaranteed not to return nsnull if the DOM node is in a document.
 @param aDOMNode The DOM node we need an accessible for.
 @param aCanCreate Can accessibles be created or must it be the first 
                   cached accessible in the parent chain?
 @return An first nsIAccessible found by crawling up the DOM node
         to the document root.
nsIAccessible getAccessibleInParentChain(in nsIDOMNode aDOMNode, in boolean aCanCreate)
 Returns the access node cached by this document
 @param aUniqueID The unique ID used to cache the node.
                  This matches up with the uniqueID attribute on
                  nsIAccessNode.
 @return The nsIAccessNode cached for this particular unique ID.
[noscript] nsIAccessNode getCachedAccessNode(in voidPtr aUniqueID)
 The namespace for each ID that is handed back.
AString getNameSpaceURIForID(in short nameSpaceID)