1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00

LibWeb: Make :link selector behave according to spec

It should match any `a` or `area` element that has an `href` attribute,
not any element *inside* an enclosing linked element.
This commit is contained in:
Andreas Kling 2022-09-14 13:29:07 +02:00
parent f25203f245
commit 4b9c5635b3
3 changed files with 12 additions and 8 deletions

View file

@ -244,11 +244,6 @@ void Node::invalidate_style()
document().schedule_style_update();
}
bool Node::is_link() const
{
return enclosing_link_element();
}
String Node::child_text_content() const
{
if (!is<ParentNode>(*this))