mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
LibWeb: Add input element valueAsDate property
This commit is contained in:
parent
be511fdcf7
commit
cf69fd0a09
10 changed files with 314 additions and 9 deletions
|
@ -8,6 +8,8 @@
|
|||
|
||||
#include <AK/Forward.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibJS/Runtime/Date.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
|
@ -15,8 +17,10 @@ u32 week_number_of_the_last_day(u64 year);
|
|||
bool is_valid_week_string(StringView value);
|
||||
bool is_valid_month_string(StringView value);
|
||||
bool is_valid_date_string(StringView value);
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Date>> parse_date_string(JS::Realm& realm, StringView value);
|
||||
bool is_valid_local_date_and_time_string(StringView value);
|
||||
String normalize_local_date_and_time_string(String const& value);
|
||||
bool is_valid_time_string(StringView value);
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Date>> parse_time_string(JS::Realm& realm, StringView value);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue