Truly independent web browser
/*
* Copyright (c) 2021-2023, Luke Wilde <[email protected]>
* Copyright (c) 2022, Andreas Kling <[email protected]>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/Bindings/Wrappable.h>
#include <LibWeb/Export.h>
namespace Web::DOM {
// https://dom.spec.whatwg.org/#nodelist
class WEB_API NodeList : public Bindings::GCAllocatedWrappable {
WEB_WRAPPABLE(NodeList, Bindings::GCAllocatedWrappable);
public:
virtual ~NodeList() override;
virtual u32 length() const = 0;
virtual Node const* item(u32 index) const = 0;
protected:
explicit NodeList();
};
}