Forum Moderators: open

Message Too Old, No Replies

problem with named anchors on konqueror

konqueror not getting links right with # and id=, name=

         

mincklerstraat

10:00 pm on Apr 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm using Konqueror 3.2.2 (KDE 3.2.3) on Ubuntu Warty right now as my test browser for Safari (both use KHTML) for a script I'm writing, but it is showing very quirky behavior when it comes to named anchors; in fact, it's not even getting pages from the w3c right - example [w3.org].
You know, not 'jumping' to the right spot of the page.

This is a big problem for the script since it's a codebrowser, and uses this functionality to get to the right code lines.

I have tried everything - started out with <tt id="33">33</tt> which works like a charm in firefox and opera, and then started making fake links like <a name="p33p" id="p33p" href="#p33p">p33p</a>, making the named anchor inside a link, and using both name and id.
None seem to work.

The thing is, these links do work in my version of konqueror sometimes, and I can't seem to figure out what makes it go, and what makes it fail.

The links are in the style <a href="#p33p">link</a>

If anyone has tips on getting named anchors to work in Konqueror, or Safari, I'd be grateful - as well as any info that might indicate that I have a fluke build of Konqueror, and that other KHTML browsers aren't likely to behave this way.

encyclo

3:01 pm on Apr 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



KHTML should support
id
anchors just fine. I won't have access to Konqueror until later this week, so I can't test properly at the moment, but I do know that Konqueror does have some bugs relating to anchors, but usually when you are using Javascript (the bugs are more JS bugs than anything else). Are you using Javascript anywhere?

Hopefully someone with access to Konqueror or Safari will be able to help more. :)

Robin_reala

10:15 pm on Apr 4, 2005 (gmt 0)

mincklerstraat

6:22 am on Apr 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Robin, thanks for the info re. id's - I'll be sure to keep them starting with a letter. Encyclo: yeah, this sorta flipped me since I'd really come to trust konqui, not getting the w3c page right really made me blink. At the moment, no js, but there's going to be some for some css that's not working cross-browser - I'm crossing my fingers and hoping I just have a flukey build of konqui.

encyclo

5:06 pm on Apr 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just to bring this thread back to life: I've tried the w3c example page in Konqueror 3.4.0 (KDE 3.4) in Ubuntu 5.04 and it is working as expected: the browser handles all the anchors correctly. Perhaps it is a one-off bug in your installation, or that the bug has been fixed in the latest Konqueror version?

If it is the latter, then you'll need to find out which versions of Safari correspond to which versions of Konqueror, and see if it is a problem in the latest versions.