After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 498847 - Character entities not rendered properly in hyperlinks
Character entities not rendered properly in hyperlinks
Status: RESOLVED FIXED
Product: GtkHtml
Classification: Other
Component: Rendering
3.16.x
Other All
: Normal normal
: ---
Assigned To: gtkhtml-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2007-11-21 22:06 UTC by Philip Chimento
Modified: 2008-07-29 12:57 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description Philip Chimento 2007-11-21 22:06:25 UTC
Please describe the problem:
Character entities, like ", are printed literally in hyperlinks, not as the characters they are supposed to represent.

Steps to reproduce:
Here is a minimal program that demonstrates the bug:

#include <gtk/gtk.h>
#include <gtkhtml/gtkhtml.h>
int main (int argc, char **argv)
{
  gtk_init(&argc, &argv);
  GtkWidget *mainwin = gtk_window_new(GTK_WINDOW_TOPLEVEL);
  GtkWidget *html = gtk_html_new();
  gtk_html_load_from_string(GTK_HTML(html), "<html><body><a href=index.html>&nbsp;&quot;</a></body></html>", -1);
  gtk_container_add(GTK_CONTAINER(mainwin), html);
  gtk_widget_show_all(mainwin);
  gtk_main();
  return 0;
}

Actual results:
A window is displayed with the literal text:
&nbsp;&quot;
underlined in blue.

Expected results:
It should be a window with a space and a quotation mark underlined in blue.

Does this happen every time?
Yes

Other information:
This seems to have broken recently, because the version that shipped with Fedora 7 (3.14.3 I believe) didn't have this problem.
Comment 1 Frederic Peters 2008-07-29 12:57:45 UTC
It works with current trunk (possibly as part of the fix to bug 485700).