From 22cc36eeaa0fb9b51ecb5f9635f871f17393a90d Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Tue, 8 Jul 2025 10:34:56 +0100 Subject: [PATCH] LibWeb/HTML: Replace "zero" with "0" in some places Corresponds to https://github.com/whatwg/html/commit/706b9860108bd1d90fb96b467d8023783067d270 --- Libraries/LibWeb/HTML/FormAssociatedElement.cpp | 4 ++-- Libraries/LibWeb/HTML/HTMLMediaElement.cpp | 2 +- Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Libraries/LibWeb/HTML/FormAssociatedElement.cpp b/Libraries/LibWeb/HTML/FormAssociatedElement.cpp index e08195303cc..7ef9f01302f 100644 --- a/Libraries/LibWeb/HTML/FormAssociatedElement.cpp +++ b/Libraries/LibWeb/HTML/FormAssociatedElement.cpp @@ -743,10 +743,10 @@ WebIDL::ExceptionOr FormAssociatedTextControlElement::set_selection_range( // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#set-the-selection-range void FormAssociatedTextControlElement::set_the_selection_range(Optional start, Optional end, SelectionDirection direction, SelectionSource source) { - // 1. If start is null, let start be zero. + // 1. If start is null, let start be 0. start = start.value_or(0); - // 2. If end is null, let end be zero. + // 2. If end is null, let end be 0. end = end.value_or(0); // 3. Set the selection of the text control to the sequence of code units within the relevant diff --git a/Libraries/LibWeb/HTML/HTMLMediaElement.cpp b/Libraries/LibWeb/HTML/HTMLMediaElement.cpp index e10d6f8be93..d4a8636da76 100644 --- a/Libraries/LibWeb/HTML/HTMLMediaElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLMediaElement.cpp @@ -1256,7 +1256,7 @@ WebIDL::ExceptionOr HTMLMediaElement::process_media_data(Function