mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-12 13:21:57 +00:00
LibWeb: Fix various typos
Corresponds to: - https://github.com/whatwg/html/pull/10934 - https://github.com/whatwg/html/pull/10950
This commit is contained in:
parent
c5d793c4a9
commit
3775f3399c
Notes:
github-actions[bot]
2025-01-30 15:01:16 +00:00
Author: https://github.com/AtkinsSJ
Commit: 3775f3399c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3404
13 changed files with 25 additions and 26 deletions
|
@ -1399,7 +1399,7 @@ WebIDL::ExceptionOr<void> HTMLInputElement::handle_src_attribute(String const& v
|
|||
request->set_credentials_mode(Fetch::Infrastructure::Request::CredentialsMode::Include);
|
||||
request->set_use_url_credentials(true);
|
||||
|
||||
// 4. Fetch request, with processResponseEndOfBody set to the following step given response response:
|
||||
// 4. Fetch request, with processResponseEndOfBody set to the following steps given response response:
|
||||
m_resource_request = SharedResourceRequest::get_or_create(realm, document().page(), request->url());
|
||||
m_resource_request->add_callbacks(
|
||||
[this, &realm]() {
|
||||
|
@ -2376,13 +2376,15 @@ WebIDL::ExceptionOr<void> HTMLInputElement::step_up_or_down(bool is_down, WebIDL
|
|||
}
|
||||
|
||||
// 8. If the element has a minimum, and value is less than that minimum, then set value to the smallest value that,
|
||||
// when subtracted from the step base, is an integral multiple of the allowed value step, and that is more than or equal to minimum.
|
||||
// when subtracted from the step base, is an integral multiple of the allowed value step, and that is more than
|
||||
// or equal to that minimum.
|
||||
if (maybe_minimum.has_value() && value < *maybe_minimum) {
|
||||
value = AK::max(value, *maybe_minimum);
|
||||
}
|
||||
|
||||
// 9. If the element has a maximum, and value is greater than that maximum, then set value to the largest value that,
|
||||
// when subtracted from the step base, is an integral multiple of the allowed value step, and that is less than or equal to maximum.
|
||||
// when subtracted from the step base, is an integral multiple of the allowed value step, and that is less than
|
||||
// or equal to that maximum.
|
||||
if (maybe_maximum.has_value() && value > *maybe_maximum) {
|
||||
value = AK::min(value, *maybe_maximum);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue