mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibWeb: Add input element valueAsDate property
This commit is contained in:
committed by
Andrew Kaster
parent
be511fdcf7
commit
cf69fd0a09
@@ -102,7 +102,10 @@ public:
|
||||
unsigned size() const;
|
||||
WebIDL::ExceptionOr<void> set_size(unsigned value);
|
||||
|
||||
WebIDL::ExceptionOr<double> value_as_number() const;
|
||||
JS::Object* value_as_date() const;
|
||||
WebIDL::ExceptionOr<void> set_value_as_date(Optional<JS::Handle<JS::Object>> const&);
|
||||
|
||||
double value_as_number() const;
|
||||
WebIDL::ExceptionOr<void> set_value_as_number(double value);
|
||||
|
||||
WebIDL::ExceptionOr<void> step_up(long n = 1);
|
||||
@@ -165,6 +168,7 @@ public:
|
||||
|
||||
bool has_input_activation_behavior() const;
|
||||
bool change_event_applies() const;
|
||||
bool value_as_date_applies() const;
|
||||
bool value_as_number_applies() const;
|
||||
bool step_applies() const;
|
||||
bool step_up_or_down_applies() const;
|
||||
@@ -191,6 +195,9 @@ private:
|
||||
Optional<double> convert_string_to_number(StringView input) const;
|
||||
String covert_number_to_string(double input) const;
|
||||
|
||||
WebIDL::ExceptionOr<JS::GCPtr<JS::Date>> convert_string_to_date(StringView input) const;
|
||||
String covert_date_to_string(JS::NonnullGCPtr<JS::Date> input) const;
|
||||
|
||||
Optional<double> min() const;
|
||||
Optional<double> max() const;
|
||||
double default_step() const;
|
||||
|
||||
Reference in New Issue
Block a user