mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibWeb: Implement document.applets
This is a legacy interface that returns an always-empty HTMLCollection.
This commit is contained in:
@@ -510,6 +510,13 @@ NonnullRefPtr<HTMLCollection> Document::get_elements_by_class_name(FlyString con
|
||||
});
|
||||
}
|
||||
|
||||
NonnullRefPtr<HTMLCollection> Document::applets()
|
||||
{
|
||||
// FIXME: This should return the same HTMLCollection object every time,
|
||||
// but that would cause a reference cycle since HTMLCollection refs the root.
|
||||
return HTMLCollection::create(*this, [] { return false; });
|
||||
}
|
||||
|
||||
Color Document::link_color() const
|
||||
{
|
||||
if (m_link_color.has_value())
|
||||
|
||||
Reference in New Issue
Block a user