On Apr 11, 8:14 pm, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
> krithika wrote:
> > This is how I save.I have problems in brFrame Content , TextFrame
> > Content , blockFrame Content.In all these cases my
>
> > cont->AppendChildTo fails.
>
> Dunno. This should work in current Gecko.
>
> That said, you _are_ creating invalid HTML, so maybe that matters.
>
> -Boris
Iam actually working with 1.5.0.3 sources ( xulrunner1.8.0.4).Will it
be resolved if we move to 2.0.0.3 sources(xulrunner1.8.1.3)?
Interesting I tried this and this works for frames other than
textframes.
But I need to do both domElement->AppendChild and cont->AppendChildTo.
//=============================================
nsCOMPtr<nsIDOMElement> domElement(do_QueryInterface(cont));
nsCOMPtr<nsIDOMNode> dummy;
domElement->AppendChild(commentNode,getter_AddRefs(dummy));
cont->AppendChildTo(text,PR_FALSE);
if(dummy)
{
dummy->GetNodeValue(value);
printf("PageBreakFrame : Comment Node value [%s]\n",
NS_LossyConvertUCS2toASCII(value).get());
}
//=============================================
But still I have problems with textframes.
Thanks for all your help,
Krithika.
_______________________________________________
dev-tech-layout mailing list
[EMAIL PROTECTED]
https://lists.mozilla.org/listinfo/dev-tech-layout