Erik Walter wrote:
But I can't figure out how to get the href attribute out of that nsIDOMNode.

Using GetAttribute() after QIing to nsIDOMElement or GetHref() after QIing to nsIDOMHTMLAnchorElement, would be your best bets (which one fits better depends on what your DOM nodes are).


P.s. and while I'm at it, any thoughts on how to determine the position (x,y) of that nsIDOMNode within the window?

You can sort of compute it using offsetTop, offsetParent, and scrollTop....



Reply via email to