Closed Bug 70311 Opened 24 years ago Closed 7 years ago

Navigating to same-page anchors does not work in pages loaded with gtk_moz_embed_open_stream

Categories

(Core Graveyard :: Embedding: GTK Widget, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mfleming, Assigned: blizzard)

Details

(Keywords: qawanted)

(confirmed in TestGtkEmbed; first seen in Nautilus) 1) Load an html document with relative page-local anchor links (eg <a href="#fragment">) via gtk_moz_embed_open_stream. Use the real filename for the base uri. Or don't; it doesn't matter. 2) Click on an anchor link Expected: View hops to the anchor Actual: Nothing happens. Nautilus has a relatively evil work-around for this, where it goes and finds the DOM node itself and forces that to be displayed.
Keywords: qawanted
Blizzard, any thoughts? Who should be the owner for this?
setting bug status to New
Status: UNCONFIRMED → NEW
Ever confirmed: true
Status: NEW → ASSIGNED
May I show you something strange to this? My (the first part) doesn't work - the second from Stefan (he should be a HTML-guru) does! <html><head><title>Mozilla Anchor Check</title> <style type="text/css"> <!-- body {font-family: Verdana, Arial, Helvetica; } p {font-family: Verdana,Arial,Helvetica; } p.Welcome {font-family: Arial, Helvetica; font-size: 12pt; font-weight: bold; text-decoration: none; } table { cellpadding: 5; background-color: rgb(255,255,204); } .indented {margin-left: 20pt; } .clickme {font-family: Verdana, Arial, Helvetica; font-size: 14pt; color: white; text-align: right; cursor: hand; text-decoration: none; } --> </style></head> <body> <h1>Just a <span class="Welcome"> test </span> for a link to an internal anchor</h1> <!-- ok, I know, tables... --> <table> <tbody> <tr><th>Some</th><th>Title</th></tr> <tr><td valign="top">some</td><td>entry</td></tr> <tr><td class="clickme"><a href="mozilla%20test.html#Full">the link!</a></td> <td>and what does it?</td> </tr> </tbody> </table> <p class="indented"> ok, I tried this link. Nothing is happening if I click on it! Does this only belong to me - or is there a problem in this page (I just have 'stolen' this source from a documentation - where I found the bug(?) - and modified it to match this demo purpose)? </p> <p>The target ist just some lines down...</p> <br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br> <p><a name="#Full">Here you should go... but don't.<br> </a></p> <p><a name="#Full"></a></p> <br><br> <p>Now some more - and this does work!?</p> <br><br> <h1>This example you see below I've 'stolen' from Stefan Münz's SelfHTML 8.0 (<a href="http://selfhtml.teamone.de/">http://selfhtml.teamone.de/</a>): </h1> <h1><a name="anfang">Lange Seite</a></h1> <p><a href="#kap02">Kapitel 2</a></p> <hr><hr><hr><hr><hr><hr><hr><hr> <hr><hr><hr><hr><hr><hr><hr><hr> <hr><hr><hr><hr><hr><hr><hr><hr> <hr><hr><hr><hr><hr><hr><hr><hr> <hr><hr><hr><hr><hr><hr><hr><hr> <hr><!-- usw. lauter Trennlinien, um Raum zu schaffen --> <h2><a name="kap02">Kapitel 2</a></h2> <p><a href="#anfang">Seitenanfang</a> oder <a href="../projektintern.htm#anker">Anker definieren und Verweise zu Ankern</a></p> <hr><hr><hr><hr><hr><hr><hr><hr> <hr><hr><hr><hr><hr><hr><hr><hr> <hr><hr><hr><hr><hr><hr><hr><hr> <hr><hr><hr><hr><hr><hr><hr><hr> <hr><hr><hr><hr><hr><hr><hr><hr> <hr><!-- usw. lauter Trennlinien, um Raum zu schaffen --> <br><br> </body> </html>
I experienced this same problem in the Win32 version of Mozilla 1.2a. I fixed it by removing the # from the anchor tag's name string. i.e. <a name="#my_link"> becomes <a name="my_link"> I cannot try this test by opening an html document "via gtk_moz_embed_open_stream" as I am in Windows (and gtk-semi-literate) so will someone who has, please try this fix?
worksforme with linux CVS trunk at http://www.w3.org/TR/CSS21/tables.html is anyone still seeing this?
(In reply to comment #5) > worksforme with linux CVS trunk at http://www.w3.org/TR/CSS21/tables.html > > is anyone still seeing this? This is still there in trunk (cvs from 2005-06-26). I suspect you tested just a random page, not a page written with the gtkmozembed stream API?
QA Contact: pavlov → gtk-widget
Product: Core → Core Graveyard
Embedding: GTK Widget isn't a thing, closing.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.