[text/plain 149b]
Good catch! The empty_element_tag feature interacts badly with literal
mode, but the fix was easy. See attached patch. I'll uploaded 3.54
today :)
[text/x-patch 656b]
Index: hparser.c
===================================================================
RCS file: /cvsroot/libwww-perl/html-parser/hparser.c,v
retrieving revision 2.129
diff -u -p -r2.129 hparser.c
--- hparser.c 27 Apr 2006 11:44:00 -0000 2.129
+++ hparser.c 28 Apr 2006 07:47:37 -0000
@@ -1383,8 +1383,7 @@ parse_start(PSTATE* p_state, char *beg,
report_event(p_state, E_START, beg, s, utf8, tokens, num_tokens, self);
if (empty_tag)
report_event(p_state, E_END, s, s, utf8, tokens, 1, self);
-
- if (!p_state->xml_mode) {
+ else if (!p_state->xml_mode) {
/* find out if this start tag should put us into literal_mode
*/
int i;