On Apr 5, 9:01 am, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > krithika wrote: > > 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?. > > As a sibling. Comments can be siblings of text. > > > content->AppendChildTo(commentContent , PR_FALSE) does not add > > anything to it. > > As Jonas and I already said, Text nodes are not allowed to have children. > > -Boris > > P.S. What are you _really_ trying to do? That is, what is the goal here? > The > global goal, not "I want to add a comment as a child of a textnode", but _why_ > you want to do that.
I am actually trying to insert comments at certain points to indicate page breaks.My last frame happens to be a frame of text type I am having trouble. In short I just need to insert a comment text after that frame. Hope Iam clear. regards, Krithika _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

