mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
This commit is contained in:
commit
b13d35dc5a
@ -38,3 +38,11 @@ h1 {
|
||||
/* Further, give it a pretty colour: */
|
||||
color: lightgoldenrod !important;
|
||||
}
|
||||
|
||||
/* The following specifies colors used in the HTML highligting. */
|
||||
document { color: yellow }
|
||||
element { color: lightgreen }
|
||||
entity-reference { color: red }
|
||||
proc-instruction { color: red }
|
||||
attribute { color: magenta }
|
||||
comment { color: aqua }
|
||||
|
@ -745,7 +745,7 @@ match_element_selector(struct dom_select_node *selector, struct dom_node *node)
|
||||
if (has_element_match(selector, DOM_SELECT_ELEMENT_ROOT)
|
||||
&& node->parent) {
|
||||
if (node->parent->type != DOM_NODE_DOCUMENT
|
||||
|| node->parent->children->size > 1)
|
||||
|| node->parent->data.document.children->size > 1)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user