Web Archive and References to an Anchor

I have a program that creates a Web Archive (.mht) from multiple html files. One of the HTML files refers to an Anchor in another HTML file placed in the archive. If I have in the file F3.HTM in the archive with the reference:

<a href="F2.HTM">Normal Link</a>

It correctly opens F2.HTM from the archive and the properties show: mhtml:file://C:MyArchive.mht!F2.htm

but if I have

<a href="F2.HTM#LN749">Anchor Link</a>

It fails to open the page and the properties show:
http://localhost/MyArchive/F2.HTM#LN749

Is it possible to use an Anchor / Name in a Web Archive, or any other method of causing a link to open another page a a specific point?

From: <test>
Subject: test
Date: 21/04/2014 15:48:12
MIME-Version: 1.0
Content-Type: multipart/related; boundary="Boundry-test"; type=text/html
This is a multi-part message in MIME format.
--Boundry-test
Content-Type: text/html
Content-Transfer-Encoding: binary
Content-Location: http://LocalHost/test/F3.htm
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>test</title></head><body><a href="F2.HTM">Normal Link</a></p><a href="F2.HTM#LN749">Anchor Link</a></body></html>
--Boundry-test
Content-Type: text/html
Content-Transfer-Encoding: binary
Content-Location: http://LocalHost/test/F2.htm
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>test</title></head><body>
<a name="LN749"></a>Test</body></html>
--Boundry-test--

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s