Antônio Gomes wrote:
nsCOMPtr <nsIDOMHTMLFormElement> focusedHTMLFormElement;
formControl->GetForm(getter_AddRefs(focusedHTMLFormElement));

Is the form control actually in a form?

<div style="margin-left: 2px; margin-right: 1px;"">
<textarea (... lots here) onkeypress=... onfocus=... >
</textarea>

So the textarea is not in a form....

Where is the problem?  You ask for a form, there isn't one, so null is 
returned...

-Boris
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to