[yunqa.de] Re: DiHTMLParser not found links

  • From: Edwin Yip <edwin.yip@xxxxxxxxxxxxxxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Wed, 14 Dec 2011 15:14:59 +0800

HI Ralf,

Thanks for the Info, this is great.



On Mon, Dec 12, 2011 at 6:05 PM, Delphi Inspiration <delphi@xxxxxxxx> wrote:

> On 12.12.2011 08:54, Edwin Yip wrote:
>
> > I'm going to add custom attributes to all html tags (start tags only),
> > can DiHtmlParser handle this?
>
> Yes. DIHtmlParser records names and values of *all* tag attributes in an
> instance of TDITag. For HTML tags, this instance is accessible via the
> TDIHtmlParser.HtmlTag property.
>
> If you want TDIHtmlParser to assign an ID to an attribute name, you must
> register this with the RegisterAttrib() procedure. TDIHtmlParser will
> then assign the ID of matching attribute names to the
> TDITag.NummberAt[Idx] property.
>
> If you want to use IDs for the standard HTML attribute names, do not
> forget to call RegisterHtmlAttribs(), too, before starting the parsing.
>
> Ralf
> _______________________________________________
> Delphi Inspiration mailing list
> yunqa@xxxxxxxxxxxxx
> //www.freelists.org/list/yunqa
>
>
>
>


-- 
Best Regards,
Edwin Yip

Mind Mapping is as Effortless as Typing
http://www.InnovationGear.com

Other related posts: