Ok, but with FALSE (DwPage owns a button that owns the image) the button
fail to draw the alt text when can not load the image and do not use width
and height atributes of the html tag.
Using your patch and seting the parameter to TRUE it use width, height and
alt, but do not redraw alt text.
Without your patch dillo segfaults if that parameter is true.
Diego.
2006/12/2, Jorge Arellano Cid <jcid(a)dillo.org>:
>
> Hi Diego,
>
> On Fri, Dec 01, 2006 at 02:23:01AM +0100, Diego . wrote:
> > Very thanks for the fast patch and the advices.
> > One question ¿In Html_input_image why is the function Html_add_new_image
> > called with the FALSE parameter?
>
> Quick answer:
>
> Because the image is embedded inside a button that's already
> inside the DwPage.
>
> In other words: there's no need to add the image to the DwPage
> because the button "owns" the image (think of an object), thus
> only the button object needs to be added.
>
> --
> Cheers
> Jorge.-
>