mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
html form validation initial steps with test html file, added stub methods, added code to handle validations
This commit is contained in:
parent
e4fcc066d1
commit
2a40877851
9 changed files with 124 additions and 15 deletions
21
tests/html/html_validation_test.html
Normal file
21
tests/html/html_validation_test.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!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>
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue