1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 20:25:07 +00:00

LibWeb: Bring form submission more up to spec

The main missing things are:
- Dialog submission
- Form validation
- Encoding URLs in the form element's encoding
- Navigables
This commit is contained in:
Luke Wilde 2023-06-18 16:30:23 +01:00 committed by Andreas Kling
parent bd62fe9c33
commit f04d1d493d
6 changed files with 668 additions and 73 deletions

View file

@ -32,7 +32,7 @@ HTMLButtonElement::HTMLButtonElement(DOM::Document& document, DOM::QualifiedName
case TypeAttributeState::Submit:
// Submit Button
// Submit element's form owner from element.
form()->submit_form(this).release_value_but_fixme_should_propagate_errors();
form()->submit_form(*this).release_value_but_fixme_should_propagate_errors();
break;
case TypeAttributeState::Reset:
// Reset Button