Posted by Grant Robertson on 04/10/07 06:54
I am currently set up for the free hosting at DirectNIC.com.
I am using static XHTML web pages with CSS and server side includes.
Everything seems to be working OK except for one rather odd behavior.
When it serves up my web pages it strips the #linkName text out of my
internal links.
My code has...
<ul>
<li><a href="#noinfo">Information is not available when needed.</a></li>
<li><a href="#textbooks">Textbooks have only one explanation.</a></li>
</ul>
....which links to...
<h3><a name="noinfo" />Information is not available when needed.</h3>
<h3><a name="textbooks" />Textbooks have only one explanation.</h3>
....on the same page.
However, the links don't work. When I view the source from the server my
links look like this...
<ul>
<li><a href="">Information is not available when needed.</a></li>
<li><a href="">Textbooks have only one explanation.</a></li>
</ul>
What the heck? I have used FileZilla to FTP the file back down to check
the code and the #linkname text is still there. It is only missing when I
view the source using the browser's View Source command. I get the
behavior in both Firefox 2.xx and IE 7.0.
The problem page is at...
http://demml.org/goals/problem/index.htm
....if you want to take a look.
Why in the world would the server strip out this code?
[Back to original message]
|