summaryrefslogtreecommitdiff
path: root/src/stylesheet.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-10-20 15:53:58 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-10-20 15:53:58 +0000
commit21eec067d83ec16d1d275483ad74972246212163 (patch)
treec0b8be7f90eb681ecfd8d06889103840e7e77912 /src/stylesheet.c
parentb983713140deb5c23d23f72fc444da6c2b667e2d (diff)
downloadlibcss-21eec067d83ec16d1d275483ad74972246212163.tar.gz
libcss-21eec067d83ec16d1d275483ad74972246212163.tar.bz2
Fix stupid.
svn path=/trunk/libcss/; revision=5606
Diffstat (limited to 'src/stylesheet.c')
-rw-r--r--src/stylesheet.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c
index 2091c1a..9d6f877 100644
--- a/src/stylesheet.c
+++ b/src/stylesheet.c
@@ -626,10 +626,14 @@ void css_stylesheet_dump_selector(css_selector *selector, FILE *target)
switch (selector->type) {
case CSS_SELECTOR_ELEMENT:
- if (selector->specifics != NULL &&
- (selector->data.name.len != 1 ||
- selector->data.name.ptr[0] != '*')) {
- css_stylesheet_dump_string(&selector->data.name,
+ if (selector->data.name.len == 1 &&
+ selector->data.name.ptr[0] == '*' &&
+ selector->specifics == NULL) {
+ css_stylesheet_dump_string(&selector->data.name,
+ target);
+ } else if (selector->data.name.len != 1 ||
+ selector->data.name.ptr[0] != '*') {
+ css_stylesheet_dump_string(&selector->data.name,
target);
}
break;