[yunqa.de] Re: DiHTMLParser not found links

  • From: Delphi Inspiration <delphi@xxxxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Sun, 27 Nov 2011 22:57:35 +0100

On 27.11.2011 15:19, Сергей wrote:

> In attachment have a link:
> <a href="http://www.lodkasava.ru/prodazha-katerov/"; target="_blank">
> but your example not found it.
> Why?

The link is not found because your document does not conform to the HTML
specification. In particular, "</style="font-size:>" in line 1330 does
not match the end tag format as described here:

  http://www.w3.org/TR/html5/syntax.html#end-tags

Therefore TDIHtmlParser does not see the end of the style element
started in line 1328 and believes that it continues up to the end of the
document. Hence your "link" is assumed to be part of the style contents
and not recognized as a link.

To identify "</style="font-size:>" as an end tag would require changes
not covered by the HTML specifications. I will have to think more about
if and how this is useful or not. Suggestions are welcome.

Ralf
_______________________________________________
Delphi Inspiration mailing list
yunqa@xxxxxxxxxxxxx
//www.freelists.org/list/yunqa



Other related posts: