/* * Copyright (c) 2020, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include 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 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; }; }