 |
 |
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
| Author |
Message |
Marilla
Joined: 02 Feb 2006 Posts: 329
|
Posted: Sat Sep 30, 2006 7:44 pm Post subject: |
|
|
Yeah, what Itec said! I had to modify the docs on my system when I downloaded them due to this, since I use Firefox.
Basically, inside the href attribute of the anchor tag, the # is a special character that tells the browser that it needs to go to an element with the name that follows; In the href attribute, that first # is not actually part of the name.
That means, if you name the target element with a #, the standard behavior (which IE does not follow, as is far too frequent, unfortunately) is that this WOULD be considered part of the name.
So, the standard behavior (which all browsers but IE follow) is that if you have an element named, say, "#config", in order to link to it, you would need an href attribute with the value "##config"... since the first # would be taken as the special character telling the browser not to simply go to the URL "config", but instead, to go to the element named with what's ever after the first # sign.
That means, for an href attribute with the value "#config" to work, the target element must be named "config". IE improperly 'guesses' what you mean by having an element named "#config", but this could cause problems if you ever actually did have an element named with a # in front of it (which probably is not a good idea, but could happen in situations where element names were dynamically generated by a server-side script).
Finally, by improperly adding the # to the front of the target elements' names, only Internet Explorer can go to those links.
Erm... now that I've said far too much.. heh |
|
 |
|
|
 |
 |
|