diff --git a/src/wattsi.pas b/src/wattsi.pas index aac179f..9048477 100644 --- a/src/wattsi.pas +++ b/src/wattsi.pas @@ -587,7 +587,7 @@ TCrossReferences = record NewLink.AppendChild(CandidateChild); CandidateChild := TempElement.FirstChild; InSkippedNode := False; - while (Assigned(CandidateChild)) do + while (Assigned(CandidateChild) and ((not (CandidateChild is TElement)) or (TElement(CandidateChild).GetAttribute('class').AsString <> 'self-link'))) do begin if ((CandidateChild is TElement) and ((TElement(CandidateChild).IsIdentity(nsHTML, eDFN)) or (TElement(CandidateChild).IsIdentity(nsHTML, eSpan)))) then begin