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 _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

