System/Libraries/Html/Renderer: Temporary hack for link styles until we implement pseudo-classes
This commit is contained in:
parent
500cc4d913
commit
c486e4cb02
1 changed files with 4 additions and 0 deletions
|
@ -589,6 +589,10 @@ Bool @node_matches_simple_selector(@html_dom_node* node, U8* selector)
|
||||||
default:
|
default:
|
||||||
break;
|
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);
|
return !StrICmp(node->tagName, selector);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue