W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2005

form parsing problem.

From: Dragos CIULICA <dragos@ciulica.ro>
Date: Mon, 5 Sep 2005 23:13:51 +0300
To: <html-tidy@w3.org>
Message-ID: <000001c5b256$55972eb0$13b0b551@cuculetz>


I have a problem with tidy's parsing:

Here's the URL for the page with problem:

and the piece of the code is (first form on that page):

<table border="0" cellpadding="0" cellspacing="0" ID="Table3">
<tr><td colspan="4"><img src="/images/ascend/shared/spacer.gif" width="1"
height="11" border="0" alt=""></td>

<form name="searchform"
action="http://www.fedex.com/cgi-bin/search_redirect" method="post"

<td colspan="5"><img src="/images/ascend/shared/spacer.gif" width="5"
height="10" border="0" alt=""></td>
<td valign="middle" align="right" colspan="3">
<div align="right">
<table border="0" cellpadding="0" cellspacing="0" ID="Table4">
<td style="width: 120px; vertical-align: middle; text-align: right"><input
type="hidden" id="Collection" name="Collection" value="us"><input
type="hidden" id="ResultTemplate" name="ResultTemplate"
value="us.hts"><input type="hidden" id="filter" name="filter"
value="metatagfilter.hts"><input type="hidden" id="Action" name="Action"
value="FilterSearch"><input type="text" class="nnform" id="QueryText"
name="QueryText" style="width: 120px; font-size: 11px;" size="13"
value="Search" onfocus="if (this.value=='Search') this.value='';" alt="Enter
Search Text"></td>
<td style="width: 5px;"><img src="/images/ascend/shared/spacer.gif"
width="5" height="1" border="0" alt=""></td>
<td class="ascend" style="width: 20px; vertical-align: middle;"><input
type="image" id="Search" name="Search fedex.com"
src="/images/ascend/shared/button-search.gif" border="0" alt="Search



And when I try to search for a input inside that form node, none was found.
What is the problem here? I noticed that there some errors during parsing,
but I would like to have also those inputs in my form. Here's the piece of
code I am using to parse:

tdoc = tidyCreate();
tidyOptSetBool( tdoc, TidyHtmlOut, yes );
tidySetErrorBuffer( tdoc, &errbuf );
tidyParseString( tdoc, __buffer__ );
tidyCleanAndRepair( tdoc );
tidyRunDiagnostics( tdoc );
tidyOptSetBool(tdoc, TidyForceOutput, yes);
tidyOptSetInt(tdoc, TidyWrapLen, 0xFFFFFFFF);

I tried to use it without tidyCleanAndRepair and tidyRunDiagnostics but
there's the same problem. 

Any help? Did I missed something?


No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.18/86 - Release Date: 8/31/2005
Received on Monday, 5 September 2005 20:13:57 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:55 UTC