mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
d245344de3
<!-- Please describe your changes on the following line: --> Added code for initial steps in html form validation. 1. Added methods for trait validatable 2. implemented stub methods for elements like HTMLInputElement, HTMLButtonElement, etc <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X ] `./mach build -d` does not report any errors - [ X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: beec035eb0ff6babf48ce836184329e60e795177
22 lines
387 B
HTML
22 lines
387 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
|
|
<form>
|
|
First name:<br>
|
|
<input type="text" name="firstname" value="Mickey" required>
|
|
<br>
|
|
Last name:<br>
|
|
<input type="text" name="lastname" value="Mouse" required>
|
|
<br><br>
|
|
<input type="submit" value="Submit">
|
|
</form>
|
|
|
|
<p>If you click the "Submit" button, the form-data will be sent to a page called "action_page.php".</p>
|
|
|
|
</body>
|
|
</html>
|
|
|
|
|
|
|