summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2020-05-25 11:01:00 +0100
committerVincent Sanders <vince@kyllikki.org>2020-05-25 11:01:00 +0100
commiteab87ade17fb01740a1922029f3fcb328631d6b4 (patch)
tree81b2f5975d17b564099503cbf3051b98d93d32f8
parent36b9b2c020f3be48f7b062607d67ac1a85b46395 (diff)
downloadnetsurf-test-eab87ade17fb01740a1922029f3fcb328631d6b4.tar.gz
netsurf-test-eab87ade17fb01740a1922029f3fcb328631d6b4.tar.bz2
add a forms test that uses almost every HTMLFormControlsCollectionHEADmaster
-rw-r--r--html/form-kitchensink.html123
1 files changed, 123 insertions, 0 deletions
diff --git a/html/form-kitchensink.html b/html/form-kitchensink.html
new file mode 100644
index 0000000..d68ff95
--- /dev/null
+++ b/html/form-kitchensink.html
@@ -0,0 +1,123 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Forms with everything</title>
+ </head>
+ <body>
+ <h1>Forms with everything</h1>
+ <!-- button fieldset input object output select textarea -->
+ <h2>Post form</h2>
+ <form action="https://test.netsurf-browser.org/cgi-bin/env.cgi" method="post">
+ <h3>button</h3>
+ <p><button>post missing type</button></p>
+ <p><button type="junk">post Junk</button></p>
+ <p><button type="submit" value="pbuttonnoname">post Submit noname</button></p>
+ <p><button type="submit" name="pbutton" value="pbuttonsub">post Submit</button></p>
+ <p><button type="reset">post Reset</button></p>
+ <p><button type="button">post Button</button></p>
+
+ <h3>fieldset</h3>
+ <fieldset>
+ <legend>Fieldset</legend>
+ <p><button type="submit" name="pfieldsetbutton" value="pfieldsetbuttonsub">post fieldset submit</button></p>
+ <p><input type="submit" name="pfieldsetinputbutton" value="post fieldset input button"></p>
+ <p><textarea name="pfieldsettextarea">post fieldset textarea</textarea></p>
+ </fieldset>
+
+ <h3>input</h3>
+ <p><input type="hidden" name="pinputhidden" value="post input hidden"></p>
+ <p><input type="text" name="pinputtext" value="post input text"></p>
+ <p><input type="search" name="pinputsearch" value="post input search"></p>
+ <p><input type="tel" name="pinputtel" value="post input tel"></p>
+ <p><input type="url" name="pinputurl" value="http://www.netsurf-browser.org/"></p>
+ <p><input type="email" name="pinputemail" value="support@netsurf-browser.org"></p>
+ <p><input type="password" name="pinputpassword" value="post input password"></p>
+ <p><input type="date" name="pinputdate" value="2020-12-28"></p>
+ <p><input type="month" name="pinputmonth" value="2020-05"></p>
+ <p><input type="week" name="pinputweek" value="2020-W22"></p>
+ <p><input type="time" name="pinputtime" value="12:34"></p>
+ <p><input type="datetime-local" name="pinputdatetime-local" value="2020-05-25T10:33"></p>
+ <p><input type="number" name="pinputnumber" value="42"></p>
+ <p><input type="range" name="pinputrange" value="33"></p>
+ <p><input type="color" name="pinputcolor" value="#123456"></p>
+ <p><input type="checkbox" name="pinputcheckbox" value="post input checkbox"></p>
+ <p><input type="radio" name="pinputradio" value="post input radio"></p>
+ <p><input type="file" name="pinputfile" value="post input file"></p>
+ <p><input type="submit" name="pinputbutton" value="post input submit"></p>
+ <p><input type="image" name="pinputimage" value="post input image"></p>
+ <p><input type="reset" name="pinputreset" value="post input reset"></p>
+ <p><input type="button" name="pinputbutton" value="post input button"></p>
+
+ <h3>select</h3>
+ <select name="pselect" required>
+ <option value=""> Select value </option>
+ <option value="1"> One </option>
+ <option value="2"> Two </option>
+ <option value="3"> Three </option>
+ <option value="4"> Four </option>
+ <option value="5"> Five </option>
+ </select>
+
+ <h3>textarea</h3>
+ <textarea name="ptextarea">0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789</textarea>
+ </form>
+
+ <h2>Get form</h2>
+ <form action="https://test.netsurf-browser.org/cgi-bin/env.cgi" method="get">
+ <h3>button</h3>
+ <p><button>get missing type</button></p>
+ <p><button type="junk">get Junk</button></p>
+ <p><button type="submit" value="gbuttonnoname">get Submit noname</button></p>
+ <p><button type="submit" name="gbutton" value="gbuttonsub">get Submit</button></p>
+ <p><button type="reset">get Reset</button></p>
+ <p><button type="button">get Button</button></p>
+
+ <h3>fieldset</h3>
+ <fieldset>
+ <legend>Fieldset</legend>
+ <p><button type="submit" name="gfieldsetbutton" value="gfieldsetbuttonsub">get fieldset submit</button></p>
+ <p><input type="submit" name="gfieldsetinputbutton" value="get fieldset input button"></p>
+ <p><textarea name="gfieldsettextarea">get fieldset textarea</textarea></p>
+ </fieldset>
+
+ <h3>input</h3>
+ <p><input type="hidden" name="ginputhidden" value="get input hidden"></p>
+ <p><input type="text" name="ginputtext" value="get input text"></p>
+ <p><input type="search" name="ginputsearch" value="get input search"></p>
+ <p><input type="tel" name="ginputtel" value="get input tel"></p>
+ <p><input type="url" name="ginputurl" value="http://www.netsurf-browser.org/"></p>
+ <p><input type="email" name="ginputemail" value="support@netsurf-browser.org"></p>
+ <p><input type="password" name="ginputpassword" value="get input password"></p>
+ <p><input type="date" name="ginputdate" value="2020-12-28"></p>
+ <p><input type="month" name="ginputmonth" value="2020-05"></p>
+ <p><input type="week" name="ginputweek" value="2020-W22"></p>
+ <p><input type="time" name="ginputtime" value="12:34"></p>
+ <p><input type="datetime-local" name="ginputdatetime-local" value="2020-05-25T10:33"></p>
+ <p><input type="number" name="ginputnumber" value="42"></p>
+ <p><input type="range" name="ginputrange" value="33"></p>
+ <p><input type="color" name="ginputcolor" value="#123456"></p>
+ <p><input type="checkbox" name="ginputcheckbox" value="get input checkbox"></p>
+ <p><input type="radio" name="ginputradio" value="get input radio"></p>
+ <p><input type="file" name="ginputfile" value="get input file"></p>
+ <p><input type="submit" name="ginputbutton" value="get input submit"></p>
+ <p><input type="image" name="ginputimage" value="get input image"></p>
+ <p><input type="reset" name="ginputreset" value="get input reset"></p>
+ <p><input type="button" name="ginputbutton" value="get input button"></p>
+
+ <h3>select</h3>
+ <select name="gselect" required>
+ <option value=""> Select value </option>
+ <option value="1"> One </option>
+ <option value="2"> Two </option>
+ <option value="3"> Three </option>
+ <option value="4"> Four </option>
+ <option value="5"> Five </option>
+ </select>
+
+ <h3>textarea</h3>
+ <textarea name="gtextarea">0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789</textarea>
+ </form>
+ </body>
+</html>