PDA

View Full Version : Anchor not working in IE7


mucat
03-09-2007, 07:04 AM
I have a HTML file with lots of anchor <a name="anchor_name">anchor_name</a> in it. However inside each anchor name, each capital letter is preceded by the '^' character. So for example, <a name="^Link1">Link1</a>, and to go to the link will use my_page.html#^Link1.

It does not work with IE7 ever since it came out, it works with all previous version of IE and opera and firefox. Once I remove the '^' character on everyone anchors and links, it will work with IE7

Anyone knows the reason?

Thanks in advance.

_Aerospace_Eng_
03-09-2007, 07:22 AM
^ is not a valid character for a name. That is a good reason of why its not working in IE7.

mucat
03-13-2007, 10:02 PM
Thanks, _Aerospace_Eng_. I suspected this is the case as I searched the web and found a couple documents talking about definition of the fragment identifier. The definition does not state ^ as a valid character. I wonder why all other browsers and previous vesion of IE did not check for this.