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:
parent
f25203f245
commit
4b9c5635b3
3 changed files with 12 additions and 8 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue