On 07/28/14 16:58, Zhenbo Li wrote: > My code is a little ugly, and I'm wondering if there is a better > solution. Is there any reason why you don't use nsIDOMHTMLInputElement::GetForm? Jacek