mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
document/dom/source.c: Trivial simplification
This commit is contained in:
parent
baeb0cb0d5
commit
b457af1984
@ -367,8 +367,7 @@ render_dom_document_start(struct dom_stack *stack, struct dom_node *node, void *
|
|||||||
struct dom_string *name = get_dom_node_type_name(type);
|
struct dom_string *name = get_dom_node_type_name(type);
|
||||||
struct css_selector *selector = NULL;
|
struct css_selector *selector = NULL;
|
||||||
|
|
||||||
if (name)
|
if (name && is_dom_string_set(name))
|
||||||
if (is_dom_string_set(name))
|
|
||||||
selector = find_css_selector(&css->selectors,
|
selector = find_css_selector(&css->selectors,
|
||||||
CST_ELEMENT, CSR_ROOT,
|
CST_ELEMENT, CSR_ROOT,
|
||||||
name->string, name->length);
|
name->string, name->length);
|
||||||
|
Loading…
Reference in New Issue
Block a user