W3C home > Mailing lists > Public > www-lib@w3.org > January to March 1999

Missing links

From: Raffaele Sena <raff@nuvomedia.com>
Date: Thu, 21 Jan 1999 11:39:51 -0800 (PST)
To: www-lib <www-lib@w3.org>
Message-ID: <Pine.LNX.4.04.9901211137360.11251-100000@localhost>

I noticed the new HTML parser does not call the foundLink callback
for URLs in FORM tags ( FORM/ACTION and INPUT/SRC ).

Here is the missing code.

Thanks,
	Raffaele


Index: HTML.c
===================================================================
RCS file: /sources/public/libwww/Library/src/HTML.c,v
retrieving revision 1.75
diff -b -r1.75 HTML.c
240a241,249
>     case HTML_FORM:
>  if (present[HTML_FORM_ACTION] && value[HTML_FORM_ACTION]) {
>      address = HTAnchor_findChildAndLink(me->node_anchor, NULL,
>                                       value[HTML_FORM_ACTION], NULL);
>      HTextImp_foundLink(me->text, element_number, HTML_FORM_ACTION,
>                      address, present, value);
>  }
>  break;
> 
251a261,269
>     case HTML_INPUT:
>  if (present[HTML_INPUT_SRC] && value[HTML_INPUT_SRC]) {
>      address = HTAnchor_findChildAndLink(me->node_anchor, NULL,
>                                       value[HTML_INPUT_SRC], NULL);
>      HTextImp_foundLink(me->text, element_number, HTML_INPUT_SRC,
>                      address, present, value);
>  }
>  break;
> 

---------------------------------------------
Raffaele Sena
Senior Software Engineer ( "THE" Linux Guy :)
NuvoMedia, Inc.
310 Villa Street
Mt. View, CA 94041
Main:   +1.650.314.1200
Direct: +1.650.314.1255
Fax:    +1.650.314.1201

mailto:raff@nuvomedia.com
http://www.rocket-ebook.com
Received on Thursday, 21 January 1999 14:40:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:28 GMT