Fix for bug 203003 [gtkhtml]
Rohini <[email protected]>
| Newsgroups | gmane.comp.gnome.evolution.patches |
|---|---|
| Message-ID | <[email protected]> |
Hi Attached fix for Bug 203003 – tags incorrectly discarded in textarea blocks Please Review. Thanks, Rohini _______________________________________________ Evolution-patches mailing list [email protected] http://mail.gnome.org/mailman/listinfo/evolution-patches
bug203003.diff
(text/x-patch, 1.4 KB)
Index: htmlengine.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/htmlengine.c,v
retrieving revision 1.642
diff -u -p -r1.642 htmlengine.c
--- htmlengine.c 27 Jan 2006 08:08:36 -0000 1.642
+++ htmlengine.c 8 Feb 2006 09:46:37 -0000
@@ -1346,8 +1346,14 @@ new_parse_body (HTMLEngine *e, const gch
g_free (str_copy);
}
- } else
- parse_one_token (e, clue, str);
+ } else {
+ if (e->inTextArea) {
+ parse_one_token (e, clue, str);
+ parse_text (e, clue, str);
+ } else
+ parse_one_token (e, clue, str);
+
+ }
}
}
@@ -3737,6 +3743,9 @@ parse_one_token (HTMLEngine *e, HTMLObje
name = parse_element_name (str);
if (!name)
+ return;
+
+ if(e->inTextArea && strcmp(tolower(name),"/textarea"))
return;
entry = g_hash_table_lookup (basic, name);
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/ChangeLog,v
retrieving revision 1.2159
diff -u -p -r1.2159 ChangeLog
--- ChangeLog 6 Feb 2006 09:59:36 -0000 1.2159
+++ ChangeLog 8 Feb 2006 09:52:43 -0000
@@ -1,3 +1,10 @@
+2006-02-08 Rohini S <[email protected]>
+
+ * htmlengine.c (new_parse_body, parse_one_token):
+ Functions modified to eliminate parsing tags in a <TEXTAREA> block.
+
+ Fixes bug #203003
+
2006-02-06 Veerapuram Varadhan <[email protected]>
** Fixes bug #326366