mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibWeb: Add support for IDL legacy platform objects
A legacy platform object is a non-global platform object that implements a special operation. A special operation is a getter, setter and/or deleter. This is particularly used for old collection types, such as HTMLCollection, NodeList, etc. This will be used to make these spec-compliant and remove their custom wrappers. Additionally, it will be used to implement collections that we don't have yet, such as DOMStringMap.
This commit is contained in:
parent
e06762f312
commit
41ae0c0216
Notes:
sideshowbarker
2024-07-18 03:25:55 +09:00
Author: https://github.com/Lubrsi
Commit: 41ae0c0216
Pull-request: https://github.com/SerenityOS/serenity/pull/10219
4 changed files with 1014 additions and 5 deletions
15
Userland/Libraries/LibWeb/Bindings/IDLAbstractOperations.h
Normal file
15
Userland/Libraries/LibWeb/Bindings/IDLAbstractOperations.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Luke Wilde <lukew@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibJS/Forward.h>
|
||||
|
||||
namespace Web::Bindings::IDL {
|
||||
|
||||
bool is_an_array_index(JS::GlobalObject&, JS::PropertyName const&);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue