Re: Anchors in current file...

Marc Andreessen (marca@ncsa.uiuc.edu)
Thu, 15 Jul 93 13:15:56 -0500


Roy Smith writes:
> >I don't know whether it is a bug in Mosaic or not, but using BACK
> >to return to a previous anchor does not seem to work if the anchor
> >is in the same file.
>
> Yes, we have noticed the same thing. I'm not familiar enough with
> the HTML specs to say if that's a bug or not, but it's certainly not
> the expected, or desired, behavior.

Well, it's not quite *that* simple. The original decision (and yes,
it was a decision) was to put _documents_ in the history list. Moving
around inside a document was thought to be different than moving to a
new document.

Like I said, 2.x reverses this policy. Now, the question is: I go to
document foo.html and scroll to line 58. A hypertext reference leads
to #myanch and I follow it, jumping to line 699 (which is where the
named anchor 'myanch' sits). Now my history list looks like --

foo.html [cached line 58]
--> foo.html#myanch [explicit line 699]

So then I scroll down to line 784, and then go 'back' (which jumps me
up to line 58). Now the history list is:

--> foo.html [cached line 58]
foo.html#myanch [explicit line 699, cached line 784]

NOW, if I go 'forward', should Mosaic put me on line 699 or line 784?

Hope this makes some sense,
Marc

--
Marc Andreessen
Software Development Group
National Center for Supercomputing Applications
marca@ncsa.uiuc.edu