LibWeb/HTML: Implement <input> element valueAsNumber for 'month'

This commit is contained in:
Shannon Booth 2025-02-07 14:27:21 +13:00 committed by Sam Atkins
commit 6c2ad49ed2
Notes: github-actions[bot] 2025-02-22 19:11:04 +00:00
5 changed files with 109 additions and 8 deletions

View file

@ -23,4 +23,11 @@ String normalize_local_date_and_time_string(String const& value);
bool is_valid_time_string(StringView value);
WebIDL::ExceptionOr<GC::Ref<JS::Date>> parse_time_string(JS::Realm& realm, StringView value);
struct YearAndMonth {
u32 year;
u32 month;
};
Optional<YearAndMonth> parse_a_month_string(StringView);
i32 number_of_months_since_unix_epoch(YearAndMonth);
}