Bug 81187 - internal links on non-anchor tags don't work
Summary: internal links on non-anchor tags don't work
Status: RESOLVED LATER
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: 3.5
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-09 11:59 UTC by Jo Vermeulen
Modified: 2008-05-06 06:28 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jo Vermeulen 2004-05-09 11:59:08 UTC
Version:            (using KDE KDE 3.2.1)
Installed from:    Gentoo Packages
Compiler:          (gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)) 
OS:          Linux

KTHML can't handle internal links which have the id tag on a random element.
The problem exists in Konqueror and Safari as far as I know.

Example:

<h1 id="chapter1">Chapter 1</h1>

It is correct XHTML 1.1 though. KHTML acts as if the internal link isn't there. If it is provided in the URL, KHTML doesn't jump to the chapter tag. 
So basically http://url#chapter1 is treated as if it were http://url

Gecko (Mozilla Firefox, Mozilla, Epiphany, etc...) renders this correctly.

My homepage could serve as a test case:

http://lumumba.luc.ac.be/jo/this_website/#png

This should jump to the <h4 id="png">PNG</h4> tag. You could validate my homepage to see that it is valid XHTML 1.1. Here's a direct link:

http://validator.w3.org/check?uri=http%3A%2F%2Flumumba.luc.ac.be%2Fjo%2Fthis_website%2F

Kind regards,

Jo Vermeulen
Comment 1 groot 2004-05-12 13:26:21 UTC
Seen with KDE_3_2_BRANCH (post 3.2.2) konqueror as well.
Comment 2 lexual 2004-11-30 01:51:36 UTC
seen with kde 3.3.1
Comment 3 Jeffrey Froman 2004-12-28 17:22:04 UTC
This happens for me with regular anchor tags as well. In my case, this problem was present in 3.2.x, disappeared in 3.3.1, and is back in 3.3.2
 
Comment 4 lexual 2007-12-13 00:50:40 UTC
Could the reporter attach a new test case, the link above doesn't appear to valid any longer.
Comment 5 Markus Kuhn 2008-02-02 15:45:29 UTC
The described problem still persists in Konqueror 3.5.5 and 3.5.7 (tested on openSUSE 10.2 and 10.3) if the id anchor is a <tr> element in a table.

Test URL to demonstrate this bug:

  http://www.cl.cam.ac.uk/~mgk25/konqueror-id-bug.html#S

Expected behavior: this URL should jump in this telephone directory table to names beginning with the letter S. (This works correctly under Firefox and many other browsers.)

Actual behavior: Konqueror 3.5.7 jumps to the top of the table, and not to the location of the table row <tr id="S">.
Comment 6 George Goldberg 2008-04-17 04:12:15 UTC
This bug is reproducible in KDE 3.5.9, however it is fixed in svn trunk r795406
Comment 7 George Goldberg 2008-05-06 06:28:44 UTC
This fix may get backported to 3.5, so closing as LATER.