[xml] HTML attribute-parsing bug

Date view Thread view Subject view Author view

From: Wayne Davison (wayned@users.sourceforge.net)
Date: Sun Oct 08 2000 - 14:35:29 EDT


A recent change in HTMLparser.c to have the attribute-parsing code use
htmlParseHTMLName() rather than htmlParseName() caused a bunch of breakage
for me because the former didn't allow a dash in the names like the latter
(properly) does. Here's a patch.

Index: HTMLparser.c
@@ -1786,7 +1786,7 @@
 
     while ((i < HTML_PARSER_BUFFER_SIZE) &&
            ((IS_LETTER(CUR)) || (IS_DIGIT(CUR)) ||
- (CUR == ':') || (CUR == '_'))) {
+ (CUR == ':') || (CUR == '-') || (CUR == '_'))) {
         if ((CUR >= 'A') && (CUR <= 'Z')) loc[i] = CUR + 0x20;
         else loc[i] = CUR;
         i++;

..wayne..

----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Oct 09 2000 - 09:43:20 EDT