@mozilla.org/content/element/html;1?name=img

This component implements the following interfaces:

Constants

PRUint16 nsIDOM3Node.DOCUMENT_POSITION_DISCONNECTED = 1
PRUint16 nsIDOM3Node.DOCUMENT_POSITION_PRECEDING = 2
PRUint16 nsIDOM3Node.DOCUMENT_POSITION_FOLLOWING = 4
PRUint16 nsIDOM3Node.DOCUMENT_POSITION_CONTAINS = 8
PRUint16 nsIDOM3Node.DOCUMENT_POSITION_CONTAINED_BY = 16
PRUint16 nsIDOM3Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32
The nsIDOMNode interface is the primary datatype for the entire Document Object Model. It represents a single node in the document tree.

For more information on this interface please see http://www.w3.org/TR/DOM-Level-2-Core/

PRUint16 nsIDOMNode.ELEMENT_NODE = 1
PRUint16 nsIDOMNode.ATTRIBUTE_NODE = 2
PRUint16 nsIDOMNode.TEXT_NODE = 3
PRUint16 nsIDOMNode.CDATA_SECTION_NODE = 4
PRUint16 nsIDOMNode.ENTITY_REFERENCE_NODE = 5
PRUint16 nsIDOMNode.ENTITY_NODE = 6
PRUint16 nsIDOMNode.PROCESSING_INSTRUCTION_NODE = 7
PRUint16 nsIDOMNode.COMMENT_NODE = 8
PRUint16 nsIDOMNode.DOCUMENT_NODE = 9
PRUint16 nsIDOMNode.DOCUMENT_TYPE_NODE = 10
PRUint16 nsIDOMNode.DOCUMENT_FRAGMENT_NODE = 11
PRUint16 nsIDOMNode.NOTATION_NODE = 12
Request types. Image loading content nodes attempt to do atomic image changes when the image url is changed. This means that when the url changes the new image load will start, but the old image will remain the "current" request until the new image is fully loaded. At that point, the old "current" request will be discarded and the "pending" request will become "current".
PRInt32 nsIImageLoadingContent.UNKNOWN_REQUEST = -1
PRInt32 nsIImageLoadingContent.CURRENT_REQUEST = 0
PRInt32 nsIImageLoadingContent.PENDING_REQUEST = 1

Properties

readonly nsIDOMNamedNodeMap nsIDOMNode.attributes

readonly DOMString nsIDOM3Node.baseURI

readonly nsIDOMNodeList nsIDOMNode.childNodes

DOMString nsIDOMHTMLElement.className

readonly PRBool nsIDOMNSHTMLImageElement.complete

readonly nsIURI nsIImageLoadingContent.currentURI

Gets the URI of the current request, if available. Otherwise, returns the last URI that this content tried to load, or null if there haven't been any such attempts.

DOMString nsIDOMHTMLElement.dir

readonly nsIDOMNode nsIDOMNode.firstChild

DOMString nsIDOMHTMLElement.id

The nsIDOMHTMLElement interface is the primary [X]HTML element interface. It represents a single [X]HTML element in the document tree.

For more information on this interface please see http://www.w3.org/TR/DOM-Level-2-HTML/

readonly PRInt16 nsIImageLoadingContent.imageBlockingStatus

Returns the image blocking status (@see nsIContentPolicy). This will always be an nsIContentPolicy REJECT_* status for cases when the image was blocked. This status always refers to the CURRENT_REQUEST load.

DOMString nsIDOMHTMLElement.lang

readonly nsIDOMNode nsIDOMNode.lastChild

PRBool nsIImageLoadingContent.loadingEnabled

LoadingEnabled is used to enable and disable loading in situations where loading images is unwanted. Note that enabling loading will *not* automatically trigger an image load.

readonly DOMString nsIDOMNode.localName

DOMString nsIDOMNSHTMLImageElement.lowsrc

readonly DOMString nsIDOMNode.namespaceURI

readonly PRInt32 nsIDOMNSHTMLImageElement.naturalHeight

readonly PRInt32 nsIDOMNSHTMLImageElement.naturalWidth

readonly nsIDOMNode nsIDOMNode.nextSibling

readonly DOMString nsIDOMNode.nodeName

readonly PRUint16 nsIDOMNode.nodeType

DOMString nsIDOMNode.nodeValue

readonly nsIDOMDocument nsIDOMNode.ownerDocument

readonly nsIDOMNode nsIDOMNode.parentNode

DOMString nsIDOMNode.prefix

readonly nsIDOMNode nsIDOMNode.previousSibling

readonly nsIDOMCSSStyleDeclaration nsIDOMElementCSSInlineStyle.style

readonly DOMString nsIDOMElement.tagName

The nsIDOMElement interface represents an element in an HTML or XML document.

For more information on this interface please see http://www.w3.org/TR/DOM-Level-2-Core/

DOMString nsIDOM3Node.textContent

DOMString nsIDOMHTMLElement.title

readonly PRInt32 nsIDOMNSHTMLImageElement.x

readonly PRInt32 nsIDOMNSHTMLImageElement.y

Methods

InterfaceMethod
nsIDOM3EventTarget void addGroupedEventListener ( DOMString type , nsIDOMEventListener listener , PRBool useCapture , nsIDOMEventGroup evtGroup )
nsIImageLoadingContent void addObserver ( imgIDecoderObserver* observer )
nsIDOMNode nsIDOMNode appendChild ( nsIDOMNode newChild )
nsIDOM3EventTarget PRBool canTrigger ( DOMString type )
nsIDOMNode nsIDOMNode cloneNode ( PRBool deep )
nsIDOM3Node PRUint16 compareDocumentPosition ( nsIDOMNode other )
imgIContainerObserver [noscript] void frameChanged ( imgIContainer* container , gfxIImageFrame* frame , nsIntRect dirtyRect )
nsIDOMElement DOMString getAttribute ( DOMString name )
nsIDOMElement nsIDOMAttr getAttributeNode ( DOMString name )
nsIDOMElement nsIDOMAttr getAttributeNodeNS ( DOMString namespaceURI , DOMString localName )
nsIDOMElement DOMString getAttributeNS ( DOMString namespaceURI , DOMString localName )
nsIDOMElement nsIDOMNodeList getElementsByTagName ( DOMString name )
nsIDOMElement nsIDOMNodeList getElementsByTagNameNS ( DOMString namespaceURI , DOMString localName )
nsIDOM3Node nsISupports getFeature ( DOMString feature , DOMString version )
nsIImageLoadingContent imgIRequest* getRequest ( PRInt32 requestType )
nsIImageLoadingContent PRInt32 getRequestType ( imgIRequest* request )
nsIDOM3Node nsIVariant getUserData ( DOMString key )
nsIDOMElement PRBool hasAttribute ( DOMString name )
nsIDOMElement PRBool hasAttributeNS ( DOMString namespaceURI , DOMString localName )
nsIDOMNode PRBool hasAttributes ( )
nsIDOMNode PRBool hasChildNodes ( )
nsIImageLoadingContent [noscript] void imageURIChanged ( AString newURI )
nsIDOMNode nsIDOMNode insertBefore ( nsIDOMNode newChild , nsIDOMNode refChild )
nsIDOM3Node PRBool isDefaultNamespace ( DOMString namespaceURI )
nsIDOM3Node PRBool isEqualNode ( nsIDOMNode arg )
nsIDOM3EventTarget PRBool isRegisteredHere ( DOMString type )
nsIDOM3Node PRBool isSameNode ( nsIDOMNode other )
nsIDOMNode PRBool isSupported ( DOMString feature , DOMString version )
nsIImageLoadingContent nsIStreamListener loadImageWithChannel ( nsIChannel channel )
nsIDOM3Node DOMString lookupNamespaceURI ( DOMString prefix )
nsIDOM3Node DOMString lookupPrefix ( DOMString namespaceURI )
nsIDOMNode void normalize ( )
imgIDecoderObserver [noscript] void onDataAvailable ( imgIRequest* request , gfxIImageFrame* frame , nsIntRect rect )
imgIDecoderObserver void onStartContainer ( imgIRequest* request , imgIContainer* container )
imgIDecoderObserver void onStartDecode ( imgIRequest* request )
imgIDecoderObserver void onStartFrame ( imgIRequest* request , gfxIImageFrame* frame )
imgIDecoderObserver void onStopContainer ( imgIRequest* request , imgIContainer* container )
imgIDecoderObserver void onStopDecode ( imgIRequest* request , nsresult status , PRUnichar* statusArg )
imgIDecoderObserver void onStopFrame ( imgIRequest* request , gfxIImageFrame* frame )
nsIDOMElement void removeAttribute ( DOMString name )
nsIDOMElement nsIDOMAttr removeAttributeNode ( nsIDOMAttr oldAttr )
nsIDOMElement void removeAttributeNS ( DOMString namespaceURI , DOMString localName )
nsIDOMNode nsIDOMNode removeChild ( nsIDOMNode oldChild )
nsIDOM3EventTarget void removeGroupedEventListener ( DOMString type , nsIDOMEventListener listener , PRBool useCapture , nsIDOMEventGroup evtGroup )
nsIImageLoadingContent void removeObserver ( imgIDecoderObserver* observer )
nsIDOMNode nsIDOMNode replaceChild ( nsIDOMNode newChild , nsIDOMNode oldChild )
nsIDOMElement void setAttribute ( DOMString name , DOMString value )
nsIDOMElement nsIDOMAttr setAttributeNode ( nsIDOMAttr newAttr )
nsIDOMElement nsIDOMAttr setAttributeNodeNS ( nsIDOMAttr newAttr )
nsIDOMElement void setAttributeNS ( DOMString namespaceURI , DOMString qualifiedName , DOMString value )
nsIDOM3Node nsIVariant setUserData ( DOMString key , nsIVariant data , nsIDOMUserDataHandler handler )

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com