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