diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-09 19:10:47 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-09 19:10:47 +0000 |
commit | aead1abef55aa88d19bf8b7b5c30b1b0d0255b0b (patch) | |
tree | 190305c308b7b7ca9cd7e0e75fe493fe256672c8 /include/libcss/select.h | |
parent | 600c5449ee6929e3571d956285630fd58da79932 (diff) | |
download | libcss-aead1abef55aa88d19bf8b7b5c30b1b0d0255b0b.tar.gz libcss-aead1abef55aa88d19bf8b7b5c30b1b0d0255b0b.tar.bz2 |
Match details
svn path=/trunk/libcss/; revision=6404
Diffstat (limited to 'include/libcss/select.h')
-rw-r--r-- | include/libcss/select.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/libcss/select.h b/include/libcss/select.h index f51efe5..1226480 100644 --- a/include/libcss/select.h +++ b/include/libcss/select.h @@ -28,6 +28,28 @@ typedef struct css_select_handler { css_error (*parent_node)(void *pw, void *node, void **parent); css_error (*sibling_node)(void *pw, void *node, void **sibling); + + css_error (*node_has_class)(void *pw, void *node, + const uint8_t *name, size_t len, + bool *match); + css_error (*node_has_id)(void *pw, void *node, + const uint8_t *name, size_t len, + bool *match); + css_error (*node_has_attribute)(void *pw, void *node, + const uint8_t *name, size_t len, + bool *match); + css_error (*node_has_attribute_equal)(void *pw, void *node, + const uint8_t *name, size_t nlen, + const uint8_t *value, size_t vlen, + bool *match); + css_error (*node_has_attribute_dashmatch)(void *pw, void *node, + const uint8_t *name, size_t nlen, + const uint8_t *value, size_t vlen, + bool *match); + css_error (*node_has_attribute_includes)(void *pw, void *node, + const uint8_t *name, size_t nlen, + const uint8_t *value, size_t vlen, + bool *match); } css_select_handler; css_error css_select_ctx_create(css_alloc alloc, void *pw, |