12345678910111213141516171819202122232425262728293031323334353637 |
- /*
- * Copyright (c) 2020, the SerenityOS developers.
- *
- * SPDX-License-Identifier: BSD-2-Clause
- */
- #pragma once
- #include <LibWeb/ARIA/Roles.h>
- #include <LibWeb/HTML/HTMLElement.h>
- #include <LibWeb/WebIDL/Types.h>
- namespace Web::HTML {
- class HTMLOListElement final : public HTMLElement {
- WEB_PLATFORM_OBJECT(HTMLOListElement, HTMLElement);
- GC_DECLARE_ALLOCATOR(HTMLOListElement);
- public:
- virtual ~HTMLOListElement() override;
- // https://www.w3.org/TR/html-aria/#el-ol
- virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::list; }
- WebIDL::Long start();
- void set_start(WebIDL::Long start)
- {
- set_attribute(AttributeNames::start, String::number(start)).release_value_but_fixme_should_propagate_errors();
- }
- private:
- HTMLOListElement(DOM::Document&, DOM::QualifiedName);
- virtual void initialize(JS::Realm&) override;
- };
- }
|