Gitweb links:
...log
http://git.netsurf-browser.org/libcss.git/shortlog/18aea52cfc1086999ce2463ccd08c5813341d32f
...commit
http://git.netsurf-browser.org/libcss.git/commit/18aea52cfc1086999ce2463ccd08c5813341d32f
...tree
http://git.netsurf-browser.org/libcss.git/tree/18aea52cfc1086999ce2463ccd08c5813341d32f
The branch, master has been updated
via 18aea52cfc1086999ce2463ccd08c5813341d32f (commit)
from c7aba9bbcaf635a2ec4ba0fb5870ec0ba2902b4a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/libcss.git/commitdiff/18aea52cfc1086999ce2463ccd08c5813341d32f
commit 18aea52cfc1086999ce2463ccd08c5813341d32f
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
Fix not([node_name]) selection.
diff --git a/src/select/select.c b/src/select/select.c
index 4243140..3543dd5 100644
--- a/src/select/select.c
+++ b/src/select/select.c
@@ -1778,7 +1778,13 @@ css_error match_detail(css_select_ctx *ctx, void *node,
switch (detail->type) {
case CSS_SELECTOR_ELEMENT:
- /* Never any need to match this detail type. */
+ if (detail->negate != 0) {
+ /* Only need to test this inside not(), since
+ * it will have been considered as a named node
+ * otherwise. */
+ error = state->handler->node_has_name(state->pw, node,
+ &detail->qname, match);
+ }
break;
case CSS_SELECTOR_CLASS:
error = state->handler->node_has_class(state->pw, node,
-----------------------------------------------------------------------
Summary of changes:
src/select/select.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/select/select.c b/src/select/select.c
index 4243140..3543dd5 100644
--- a/src/select/select.c
+++ b/src/select/select.c
@@ -1778,7 +1778,13 @@ css_error match_detail(css_select_ctx *ctx, void *node,
switch (detail->type) {
case CSS_SELECTOR_ELEMENT:
- /* Never any need to match this detail type. */
+ if (detail->negate != 0) {
+ /* Only need to test this inside not(), since
+ * it will have been considered as a named node
+ * otherwise. */
+ error = state->handler->node_has_name(state->pw, node,
+ &detail->qname, match);
+ }
break;
case CSS_SELECTOR_CLASS:
error = state->handler->node_has_class(state->pw, node,
--
Cascading Style Sheets library
_______________________________________________
netsurf-commits mailing list
[email protected]
http://vlists.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org