1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:27:35 +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

@ -170,8 +170,6 @@ public:
void invalidate_style();
bool is_link() const;
void set_document(Badge<Document>, Document&);
virtual EventTarget* get_parent(Event const&) override;