diff options
author | Daniel Veillard <veillard@redhat.com> | 2009-08-13 10:10:29 +0200 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2009-08-13 10:10:29 +0200 |
commit | 7459c595a003cf292f31f5bb521747048be4a2da (patch) | |
tree | 0ff06d791ff712adab15a1cfbdf9723043cce904 /HTMLparser.c | |
parent | 8d7c1b7ab296ea2e8c8d18d7b8f3d24e0963f8ff (diff) | |
download | libxml2-7459c595a003cf292f31f5bb521747048be4a2da.tar.gz |
588441 allow '.' in HTML Names even if invalid
* HTMLparser.c: just allow '.' in htmlParseHTMLName list of characters
Diffstat (limited to 'HTMLparser.c')
-rw-r--r-- | HTMLparser.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/HTMLparser.c b/HTMLparser.c index 3a03a3eb..afec8bd8 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -2273,11 +2273,12 @@ htmlParseHTMLName(htmlParserCtxtPtr ctxt) { xmlChar loc[HTML_PARSER_BUFFER_SIZE]; if (!IS_ASCII_LETTER(CUR) && (CUR != '_') && - (CUR != ':')) return(NULL); + (CUR != ':') && (CUR != '.')) return(NULL); while ((i < HTML_PARSER_BUFFER_SIZE) && ((IS_ASCII_LETTER(CUR)) || (IS_ASCII_DIGIT(CUR)) || - (CUR == ':') || (CUR == '-') || (CUR == '_'))) { + (CUR == ':') || (CUR == '-') || (CUR == '_') || + (CUR == '.'))) { if ((CUR >= 'A') && (CUR <= 'Z')) loc[i] = CUR + 0x20; else loc[i] = CUR; i++; |