RadioNodeList.h 908 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2023, Shannon Booth <shannon@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/DOM/LiveNodeList.h>
  8. namespace Web::HTML {
  9. // https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#radionodelist
  10. class RadioNodeList : public DOM::LiveNodeList {
  11. WEB_PLATFORM_OBJECT(RadioNodeList, DOM::LiveNodeList);
  12. GC_DECLARE_ALLOCATOR(RadioNodeList);
  13. public:
  14. [[nodiscard]] static GC::Ref<RadioNodeList> create(JS::Realm& realm, DOM::Node const& root, Scope scope, ESCAPING Function<bool(DOM::Node const&)> filter);
  15. virtual ~RadioNodeList() override;
  16. FlyString value() const;
  17. void set_value(FlyString const&);
  18. protected:
  19. virtual void initialize(JS::Realm&) override;
  20. private:
  21. explicit RadioNodeList(JS::Realm& realm, DOM::Node const& root, Scope scope, ESCAPING Function<bool(DOM::Node const&)> filter);
  22. };
  23. }