mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-11 13:39:55 +02:00
System/Libraries/Html/Renderer: Temporary hack for link styles until we implement pseudo-classes
This commit is contained in:
@@ -589,6 +589,10 @@ Bool @node_matches_simple_selector(@html_dom_node* node, U8* selector)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
// FIXME: Hack for link styles until we implement pseudo-classes
|
||||
if (String.EndsWith(":link", selector) && !StrICmp(node->tagName, "a")) {
|
||||
return TRUE;
|
||||
}
|
||||
return !StrICmp(node->tagName, selector);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user