View Issue Details

IDProjectCategoryView StatusLast Update
0004354JEDI VCL00 JVCL Componentspublic2008-05-28 13:20
ReportermartinalexAssigned Toobones 
Status resolvedResolutionfixed 
Product Version3.33 
Target VersionFixed in Version3.34 
Summary0004354: JvHTMLParser attributes never shown
DescriptionThe JvHTMLParser does not show any attributes.

E.g. when running the JVCL sample JvHtmlParserProj.exe with the sample file ‘sample.htm’ from \jvcl\examples\JvHTMLParser
Attributes are never shown

For the tag (Line 4 in the sample file)
<Table Width="100%" Border=1 BgColor="#ffffcc">

the sample program shows the tag, on tab 4 ‘tags’
    <Table Width="100%" Border=1 BgColor="#ffffcc">
But no attributes.
It should show

The problem is that in JvHTMLParser.pas
procedure TJvHTMLParser.AnalyseString
the procedure ParseAttributes(AttributesList, Str3);
is called with Str3, but Str3 is always empty.
the empty list is passed to FOnKeyFoundEx()

The fix is to use Str2 instead
    ParseAttributes(AttributesList, Str2);

Perhaps Str3 could be used if not empty
        if Str3<>'' then
           ParseAttributes(AttributesList, Str3)
           ParseAttributes(AttributesList, Str2);

There was a similar issue in 2006, 0003489, which was closed, because no sample was given.

TagsNo tags attached.



2008-05-28 13:20

administrator   ~0014310

This is fixed in SVN

Issue History

Date Modified Username Field Change
2008-03-06 02:58 martinalex New Issue
2008-05-28 13:20 obones Status new => resolved
2008-05-28 13:20 obones Fixed in Version => Daily / SVN
2008-05-28 13:20 obones Resolution open => fixed
2008-05-28 13:20 obones Assigned To => obones
2008-05-28 13:20 obones Note Added: 0014310