Anchors fixed in wikilink example?

master
rbern 2011-07-28 11:35:03 -04:00 committed by admin
parent 81d2edad0e
commit 6ad92b56f1
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,8 @@ BTW, ikiwiki doesn't displays the #foo anchor in the example
>> Fixed that --[[Joey]]
>>> Sorry to bring this up (1 year since last change in this page) but what is the status of this? Can we use anchors like it's in [[wikilink]]? This discusion is tagged as wishlist, but isn't listed in [[wishlist]]. What is "fixed that" then? Again, sorry if this is a dead issue, but I have a tendency to create big wiki pages, and anchors are very needed for me, but I've spent all morning trying to make it work and it just doesn't. TY. --rbern
The 'name' attribute of the 'a' element is a depracated way to create a named anchor. The right way to do that is using the 'id' attribute of any element. This is because an anchor may refer to a complete element rather than some point in the page.
Standard purity aside, if you define an anchor (using either 'a name' or 'id') to a single point in the document but refer to a complete section, the browser may just show that specific point at the bottom of the page rather than trying to show all the section.