1
0
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:
Miciah Dashiel Butler Masters 2005-12-24 18:02:12 +00:00 committed by Miciah Dashiel Butler Masters
commit b13d35dc5a
2 changed files with 9 additions and 1 deletions

View File

@ -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 }

View File

@ -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;
}