Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Setting span html element text in C++

27 views
Skip to first unread message

Vaibhav

unread,
Apr 13, 2010, 2:01:34 AM4/13/10
to
Hi,

I am writing firefox extension using C++.
I want to set text of the span html element.

In Javascript, I used 'textcontent' javascript property to set span
element text.

How can I do it in C++?

I found nsIDOMHTMLElement interface & its child interfaces.

They seem useful.

I am not getting the way in which I will use nsIDOMHTMLElement
interface & its child interfaces to set span element text.

Please suggest me the way!

Thanks,
Vaibhav.

Neil

unread,
Apr 13, 2010, 8:47:44 AM4/13/10
to
Vaibhav wrote:

>In Javascript, I used 'textcontent' javascript property to set span element text.
>
>How can I do it in C++?
>
>

textContent is an attribute of the nsIDOM3Node interface.

--
Warning: May contain traces of nuts.

Vaibhav

unread,
Apr 13, 2010, 9:34:35 AM4/13/10
to

Neil, Thank u very much.
Its the solution.


Thanks,
Vaibhav

Vaibhav

unread,
Apr 19, 2010, 12:46:14 AM4/19/10
to


Hi,
I got another solution as:
Create a text node and append it as child of span element.

Vaibhav.

0 new messages