System/Libraries/Html/Renderer: Temporary hack for link styles until we implement pseudo-classes

This commit is contained in:
Alec Murphy 2025-04-25 14:37:47 -04:00
parent 500cc4d913
commit c486e4cb02

View file

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