mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
LibWeb: Update show the picker if applicable to latest spec text
This commit is contained in:
committed by
Andreas Kling
parent
7da449ce01
commit
2fde20993b
Notes:
sideshowbarker
2024-07-17 22:41:14 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/2fde20993b Pull-request: https://github.com/SerenityOS/serenity/pull/24478 Reviewed-by: https://github.com/jamierocks
@@ -255,7 +255,9 @@ static void show_the_picker_if_applicable(HTMLInputElement& element)
|
||||
if (!element.is_mutable())
|
||||
return;
|
||||
|
||||
// 3. If element's type attribute is in the File Upload state, then run these steps in parallel:
|
||||
// 3. Consume user activation given element's relevant global object.
|
||||
|
||||
// 4. If element's type attribute is in the File Upload state, then run these steps in parallel:
|
||||
if (element.type_state() == HTMLInputElement::TypeAttributeState::FileUpload) {
|
||||
// NOTE: These steps cannot be fully implemented here, and must be done in the PageClient when the response comes back from the PageHost
|
||||
|
||||
@@ -277,7 +279,7 @@ static void show_the_picker_if_applicable(HTMLInputElement& element)
|
||||
return;
|
||||
}
|
||||
|
||||
// 4. Otherwise, the user agent should show any relevant user interface for selecting a value for element,
|
||||
// 5. Otherwise, the user agent should show any relevant user interface for selecting a value for element,
|
||||
// in the way it normally would when the user interacts with the control. (If no such UI applies to element, then this step does nothing.)
|
||||
// If such a user interface is shown, it must respect the requirements stated in the relevant parts of the specification for how element
|
||||
// behaves given its type attribute state. (For example, various sections describe restrictions on the resulting value string.)
|
||||
|
||||
Reference in New Issue
Block a user