Item14034: TOC does not work in Safari on Mac
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component:
Branches:
Moved to Support/Question1767
I usually use Chrome, but today I was testing a problem in Safari. When I was putting together a page that illustrated that problem (
http://wiki.cfcl.com/Vicki/Tmp/TypeInMind), I tripped over a TOC issue in Foswiki.
When I click on TOC entries in Safari, the page blinks and repaints, but does not scroll to the appropriate location. I looked at the underlying HTML and, instead of the expected
<a name=... tages, I saw
id
attributes:
<div id="foswikiTOC" class="foswikiToc"> <ul>
<li> <a href="#Screen_shot_45_Chrome"> Screen shot - Chrome </a>
</li> <li> <a href="#Screen_Shot_45_Safari"> Screen Shot - Safari </a>
</li> <li> <a href="#Screen_Shot_45_Zapped"> Screen Shot - Zapped </a>
</li></ul>
</div>
<p></p>
<h2 id="Screen_shot_45_Chrome"> Screen shot - Chrome </h2>
<p></p>
--- content ---
<p></p>
<h2 id="Screen_Shot_45_Safari"> Screen Shot - Safari </h2>
<p></p>
--- content ---
<p></p>
<h2 id="Screen_Shot_45_Zapped"> Screen Shot - Zapped </h2>
<p></p>
--- content ---
--
VickiBrown - 30 Mar 2016
Seems to be a configuration mismatch of your server: your foswiki always generates long urls (
http://wiki.cfcl.com/bin/view/Vicki/Tmp/TypeInMind) whereas the web-server immediately redirects to short urls. See also the value of the
<base ...>
element. Any click on a TOC link thus refreshes all of the page ... instead of just scrolling down ... because the website's url does not match to the emitted urls.
Btw
<a name>
is invalid in HTML5. See
5.6.9 Navigating to a fragment identifier. I am pretty sure once you fixed your short urls will Safari be just fine (fingers crossed). Please reopen this bug report when that is not the case including info about the version of Safari you are using.
--
MichaelDaum - 30 Mar 2016
> > Seems to be a configuration mismatch of your server:
> > I am pretty sure once you fixed your short urls
OK, given that I used the Foswiki Apache config generator.... how do I "change this"?
--
VickiBrown - 30 Mar 2016
" See also the value of the
element."
What does this have to do with me? I don;t control that.
--
VickiBrown - 30 Mar 2016