|
@@ -8,6 +8,7 @@
|
|
|
|
|
|
#include <LibWeb/ARIA/Roles.h>
|
|
#include <LibWeb/ARIA/Roles.h>
|
|
#include <LibWeb/HTML/HTMLElement.h>
|
|
#include <LibWeb/HTML/HTMLElement.h>
|
|
|
|
+#include <LibWeb/WebIDL/Types.h>
|
|
|
|
|
|
namespace Web::HTML {
|
|
namespace Web::HTML {
|
|
|
|
|
|
@@ -21,8 +22,8 @@ public:
|
|
// https://www.w3.org/TR/html-aria/#el-ol
|
|
// https://www.w3.org/TR/html-aria/#el-ol
|
|
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::list; }
|
|
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::list; }
|
|
|
|
|
|
- i32 start() { return get_attribute(AttributeNames::start).value_or("1"_string).to_number<i32>().value_or(1); }
|
|
|
|
- void set_start(i32 start)
|
|
|
|
|
|
+ WebIDL::Long start();
|
|
|
|
+ void set_start(WebIDL::Long start)
|
|
{
|
|
{
|
|
set_attribute(AttributeNames::start, String::number(start)).release_value_but_fixme_should_propagate_errors();
|
|
set_attribute(AttributeNames::start, String::number(start)).release_value_but_fixme_should_propagate_errors();
|
|
}
|
|
}
|