Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Strange IE bug... Help, please.
- Dave Anderson
June 10, 2005, 6:52 pm
rate this thread
I've done a bunch of googling and searched all the references I've got
without finding anything that seems relevant to this issue; I'd
appreciate any useful pointers or constructive comments.
I've got a page at <http://www.nesfa.org/rules/code-s1.html which makes
extensive use of anchors within the page. Every other browser I've
tried deals with them just fine, but (at least recent versions of) IE
acts as though they didn't exist -- selecting a link pointing to one of
them sends you off to the top of the page rather than to the correct place.
Using the tools at www.htmlhelp.org, the HTML validates and the CSS
checks out with only a couple of minor errors (warnings about setting
one color without setting all of them). In the process of exploring
this problem, I noticed that my fragment-IDs are technically illegal
(they should be restricted to [A-Za-z][-_:.A-Za-z0-9]* but many of mine
start with a digit or include parentheses) -- I'll fix this as soon as I
get a chance, but testing by correcting one of them and trying it in IE
still shows the problem.
These anchors are all of the form <li><p><a name="xxx" class=yyy>xxx</a>
... </p></li>. A fair amount of thrashing about has revealed that one
way to get IE to behave is to change this to <li><p><a name="xxx"><span
class=yyy>xxx</span></a> ... </p></li> -- but that's rather ugly, and in
any case I'd rather understand more about what's happening (if possible).
The first thing on the page (after the headers) is a list of several
dozen links to sections within the page; the particular one I've tested
with is "1.37 NESFA Press Guests at Boskone" (I've no reason to expect
that any of the others would behave differently).
Thanks in advance for any light you can shed,