* Query the {@code nsIDOMHTMLElement} interface from the node.
* @param node the node to convert.
* @exception XPCOMException if the node is not an anchor.
*/
public static nsIDOMHTMLElement asHTMLElement(nsIDOMNode node) {
nsIDOMHTMLElement element = (nsIDOMHTMLElement) node.queryInterface(nsIDOMHTMLElement.NS_IDOMHTMLELEMENT_IID);
return element;
}