|
@@ -38,6 +38,7 @@ type
|
|
private
|
|
private
|
|
CurLinkText: string;
|
|
CurLinkText: string;
|
|
CurURL: string;
|
|
CurURL: string;
|
|
|
|
+ CurDoc: string;
|
|
InAnchor: boolean;
|
|
InAnchor: boolean;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -158,7 +159,11 @@ begin
|
|
if Entered then
|
|
if Entered then
|
|
begin
|
|
begin
|
|
CurLinkText:='';
|
|
CurLinkText:='';
|
|
- if DocGetTagParam('HREF',CurURL)=false then CurURL:='';
|
|
|
|
|
|
+ if DocGetTagParam('HREF',CurURL)=false then
|
|
|
|
+ if DocGetTagParam('NAME',CurURL) then
|
|
|
|
+ CurURL:=CurDoc+'#'+CurURL
|
|
|
|
+ else
|
|
|
|
+ CurURL:='';
|
|
CurURL:=Trim(CurURL);
|
|
CurURL:=Trim(CurURL);
|
|
CurURL:=CompleteURL(GetDocumentBaseURL,CurURL);
|
|
CurURL:=CompleteURL(GetDocumentBaseURL,CurURL);
|
|
end
|
|
end
|
|
@@ -497,6 +502,7 @@ begin
|
|
if Assigned(Doc)=false then Exit;
|
|
if Assigned(Doc)=false then Exit;
|
|
|
|
|
|
Doc^.State:=ssProcessing;
|
|
Doc^.State:=ssProcessing;
|
|
|
|
+ CurDoc:=Doc^.GetDocumentURL;
|
|
New(F, Init(Doc^.GetDocumentURL));
|
|
New(F, Init(Doc^.GetDocumentURL));
|
|
if Assigned(F) then
|
|
if Assigned(F) then
|
|
begin
|
|
begin
|
|
@@ -505,6 +511,7 @@ begin
|
|
Dispose(F, Done);
|
|
Dispose(F, Done);
|
|
end;
|
|
end;
|
|
Doc^.State:=ssScanned;
|
|
Doc^.State:=ssScanned;
|
|
|
|
+ CurDoc:='';
|
|
end;
|
|
end;
|
|
|
|
|
|
procedure THTMLFileLinkScanner.ScheduleDoc(const DocumentURL: string);
|
|
procedure THTMLFileLinkScanner.ScheduleDoc(const DocumentURL: string);
|
|
@@ -530,7 +537,10 @@ end;
|
|
END.
|
|
END.
|
|
{
|
|
{
|
|
$Log$
|
|
$Log$
|
|
- Revision 1.1 2001-08-04 11:30:26 peter
|
|
|
|
|
|
+ Revision 1.2 2002-04-11 07:06:31 pierre
|
|
|
|
+ + recreate the full target of an anchor that only has a NAME field
|
|
|
|
+
|
|
|
|
+ Revision 1.1 2001/08/04 11:30:26 peter
|
|
* ide works now with both compiler versions
|
|
* ide works now with both compiler versions
|
|
|
|
|
|
Revision 1.1.2.1 2000/10/18 21:53:28 pierre
|
|
Revision 1.1.2.1 2000/10/18 21:53:28 pierre
|
|
@@ -551,4 +561,4 @@ END.
|
|
Revision 1.1 2000/04/25 08:42:32 pierre
|
|
Revision 1.1 2000/04/25 08:42:32 pierre
|
|
* New Gabor changes : see fixes.txt
|
|
* New Gabor changes : see fixes.txt
|
|
|
|
|
|
-}
|
|
|
|
|
|
+}
|