On Wed, 12 Mar 2003 11:15:12 -0800, Toby Bartels toby+wikipedia@math.ucr.edu wrote:
Tarquin wrote:
Lee Daniel Crocker wrote:
<h2><a name="thisisasubhead">This is a subhead</a></h2>
<h2><a name="thisisasubhead"></a>This is a subhead</h2>
Don't include the name in the <a>, I think that will could it acquire hovering properties (underlining, etc) which we don't want
Which browsers do this? Is this more than just a guess?
Yes - all those which comply with the standards: Opera, Mozilla, and IIRC, IE5/Mac. Opera7, incidentally, is the first browser to fully comply with the standards and allow hover styling on all elements. However, it is also true
And I do suggest recognising the spaces as we normally do in our URLs, to avoid confusing people by doing them differently.
removing whitespace is NOT a matter of choice. What delimits the end of an URL? Whitespace.
So <A href="#The Middle"> and <a href="#The end"> ought both resolve to the same anchor: <a name="The"> There is a risk that they will match <A name="The beginning">. Some browsers do allow spaces at present, but it shouldn't be relied upon.
Finally, the name attribute is more or less deprecated in favour of "id". It doesn't appear at all by XHTML 1.1. As I mentioned previously, the only browser with any significant market share which doesn't support internal links to id is Netscape 4. Which I think we can live with. Netscape 4 users must surely be aware that many features of the modern web don't work for them.