mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
LibWeb: Give Document a "target element"
The target element is the one matching the URL fragment. We don't yet set it to anything.
This commit is contained in:
parent
28aa4ca767
commit
13b4bf48a8
4 changed files with 28 additions and 1 deletions
|
@ -634,6 +634,11 @@ bool Element::is_active() const
|
|||
return document().active_element() == this;
|
||||
}
|
||||
|
||||
bool Element::is_target() const
|
||||
{
|
||||
return document().target_element() == this;
|
||||
}
|
||||
|
||||
JS::NonnullGCPtr<HTMLCollection> Element::get_elements_by_class_name(DeprecatedFlyString const& class_names)
|
||||
{
|
||||
Vector<FlyString> list_of_class_names;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue