* @param node the node to convert.
* @return the node as an image element.
* @exception XPCOMException if the node is not an image.
*/
public static nsIDOMHTMLImageElement asImage(nsIDOMNode node) {
nsIDOMHTMLImageElement image = (nsIDOMHTMLImageElement) node.queryInterface(nsIDOMHTMLImageElement.NS_IDOMHTMLIMAGEELEMENT_IID);
return image;
}