Hi Boris,

nsCOMPtr <nsIDOMHTMLFormElement> focusedHTMLFormElement;
formControl->GetForm(getter_AddRefs(focusedHTMLFormElement));


Is the form control actually in a form?

I supposed it is, once GetType returns NS_FORM_TEXTAREA.


<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...

I see. But even not being a form, it works as an input for the user, right ? If so, in my case I'll have to handle this as such (like poping up the virtial keyboard for the user). How could I get this textarea element ? Can I edit its content manually ?

Thanks again for your time.

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

Reply via email to