On Apr 5, 12:44 am, Jonas Sicking <[EMAIL PROTECTED]> wrote:
> Boris Zbarsky wrote:
> > krithika wrote:
> >> Can someone tell me how to insert a comment node to a nsITextContent.?
>
> > Meaning what?  None of the nodes implementing nsITextContent are allowed
> > to have kids.  So what are you actually trying to do?
>
> > -Boris
>
> > P.S.  I suggest doing whatever you're doing using DOM APIs.  Unless what
> > you're doing is extremely performance-sensitive, there's no reason to
> > use nsITextContent.
>
> FWIW, nsITextContent doesn't exist on trunk any more. All relevant
> functions live on nsIContent now. However the same still holds true,
> none of the nodes that previously implemented nsITextContent can have kids.
>
> / Jonas

Thanks for that information.

>None of the nodes implementing nsITextContent are allowed
> to have kids.  So what are you actually trying to do?


I have a text frame and I have the content of that textframe.Now my
question is how do I add a comment node to this?.

I create commentContent as indicated in my previous post .

content->AppendChildTo(commentContent , PR_FALSE) does not add
anything to it.

regards,
Krithika


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

Reply via email to