aboutsummaryrefslogtreecommitdiffstats
path: root/HTMLparser.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-11-06 22:50:19 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-11-06 22:50:19 +0000
commit957fdcf2a3520ee18c6f148d504e326bff981cb2 (patch)
tree3e7cc7162edbceb7e21da8e010f15f5b0871138e /HTMLparser.c
parentc853b32f9d51c8ee842c04ffd73af3e36aa58714 (diff)
downloadandroid_external_libxml2-957fdcf2a3520ee18c6f148d504e326bff981cb2.tar.gz
android_external_libxml2-957fdcf2a3520ee18c6f148d504e326bff981cb2.tar.bz2
android_external_libxml2-957fdcf2a3520ee18c6f148d504e326bff981cb2.zip
handle the case of < in quoted attributes, Bastian Kleineidam Daniel
* HTMLparser.c test/HTML/lt.html result/HTML/lt.html*: handle the case of < in quoted attributes, Bastian Kleineidam Daniel
Diffstat (limited to 'HTMLparser.c')
-rw-r--r--HTMLparser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/HTMLparser.c b/HTMLparser.c
index da4666c0..af941a0e 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -1970,7 +1970,8 @@ htmlParseHTMLAttribute(htmlParserCtxtPtr ctxt, const xmlChar stop) {
/*
* Ok loop until we reach one of the ending chars
*/
- while ((CUR != 0) && (CUR != stop) && (CUR != '>')) {
+ while ((CUR != 0) && (CUR != stop)) {
+ if ((stop == 0) && (CUR == '>')) break;
if ((stop == 0) && (IS_BLANK(CUR))) break;
if (CUR == '&') {
if (NXT(1) == '#') {