--- dillo/src/html.c    Fri Dec 22 23:45:10 2000
+++ dillo.new/src/html.c        Sat Dec 23 00:50:21 2000
@@ -2484,10 +2484,14 @@ static gint Html_match_attr(const char *
  *   0 if value is bigger than datasize
  * (This code is complex, but avoids a second pass over the value --Jcid)
  */
-static gint Html_get_attr_value(const char *tag, gint tagsize,
+static gint Html_get_attr_value(const gchar *old_tag, gint old_tagsize,
                                 char *data, gint datasize)
 {
-   gint i;
+   gint i, tagsize;
+   gchar *tag;
+
+   tag = Html_parse_entities((gchar *)old_tag, old_tagsize);
+   tagsize = strlen(tag);

    if (tag[0] == '"'|| tag[0] == '\´ ) {
       /* copy to end quote or to datasize */
@@ -2502,6 +2506,8 @@ static gint Html_get_attr_value(const ch
       if (i == tagsize - 1 && i >= 1 && tag[i - 1] == '/')
          i--;
    }
+
+   g_free(tag);

    if ( i < tagsize && i < datasize ) {
       *--data = '\0';
