[yunqa.de] DiHTMLParser and multiple class values

  • From: Gousti Fruit <goustifruit@xxxxxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Sun, 29 Jan 2012 13:28:06 +0100

Hi,

In my code I'm searching for HTML parts based on some class
attributes, like this:

if HP.HtmlTag.ValueOfNumber[ATTRIB_CLASS_ID] = some_class then ...

but this doesn't work when the class field contains multiple values.
For example if I'm searching for all <td class="main"> tags, the
parser won't find tags like this: <td class="main first"> or <td
class="last main">. Is there an easy way to achieve this with
DiHTMLParser ?

Thanks,
Gousti.
_______________________________________________
Delphi Inspiration mailing list
yunqa@xxxxxxxxxxxxx
//www.freelists.org/list/yunqa



Other related posts: