diff options
author | Dom Lachowicz <domlachowicz@gmail.com> | 2007-01-09 17:12:56 +0000 |
---|---|---|
committer | Dom Lachowicz <doml@src.gnome.org> | 2007-01-09 17:12:56 +0000 |
commit | fae536e2c9ee18a81472f658a45e628a6b288682 (patch) | |
tree | 243eae184a01c7c28b4282a5ee2e4d14e6480df4 /src/cr-sel-eng.c | |
parent | 8bd67a9630e9997126ac2a1cc272a97ec39dd947 (diff) | |
download | libcroco-fae536e2c9ee18a81472f658a45e628a6b288682.tar.gz |
a bug in the class selector code, where it would no\ t require whitespace
2007-01-09 Dom Lachowicz <domlachowicz@gmail.com>
* src/cr-sel-eng.c: a bug in the class selector code, where it would no\
t require whitespace before the class in a class attribute with multiple classe\
s.
svn path=/trunk/; revision=308
Diffstat (limited to 'src/cr-sel-eng.c')
-rw-r--r-- | src/cr-sel-eng.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cr-sel-eng.c b/src/cr-sel-eng.c index c839908..5b72e09 100644 --- a/src/cr-sel-eng.c +++ b/src/cr-sel-eng.c @@ -235,6 +235,10 @@ class_add_sel_matches_node (CRAdditionalSel * a_add_sel, xmlNode * a_node) if ((cur && !*cur) || cr_utils_is_white_space (*cur) == TRUE) result = TRUE; + } else { /* if it doesn't match, */ + /* then skip to next whitespace character to try again */ + while (cur && *cur && !(cr_utils_is_white_space(*cur) == TRUE)) + cur++; } if (cur && !*cur) break ; |