RadioNodeList.h 815 B

1234567891011121314151617181920212223242526272829303132
  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::DOM {
  9. // https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#radionodelist
  10. class RadioNodeList : public LiveNodeList {
  11. WEB_PLATFORM_OBJECT(RadioNodeList, LiveNodeList);
  12. public:
  13. [[nodiscard]] static JS::NonnullGCPtr<RadioNodeList> create(JS::Realm& realm, Node& root, Scope scope, Function<bool(Node const&)> filter);
  14. virtual ~RadioNodeList() override;
  15. FlyString value() const;
  16. void set_value(FlyString const&);
  17. protected:
  18. virtual void initialize(JS::Realm&) override;
  19. private:
  20. explicit RadioNodeList(JS::Realm& realm, Node& root, Scope scope, Function<bool(Node const&)> filter);
  21. };
  22. }