File: lacks_uncapped_inputs-bad.html

package info (click to toggle)
libtest-www-mechanize-perl 1.60-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 380 kB
  • sloc: perl: 2,725; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 824 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<html>
    <head>
        <title>Title</title>
    </head>
    <body>
        <form name="testform">
            <input name="foo" type="text" size="12"> <!-- this is one bad one with a missing maxlength -->
            <input name="bar" type="radio">
            <input name="bat" type="text" disabled> <!-- no maxlength, but disabled so it's OK -->
            <input name="baz" type="text" maxlength=" 14 "> <!-- spaces shouldn't be a problem -->
            <input name="quux" type="text" size="12" maxlength="dogs"> <!-- not an integer -->
            <input name="crunchy" type="text" size="12" maxlength="-1"> <!-- negative -->
            <input name="bingo" type="text" maxlength=""> <!-- blank -->
            <input name="bongo" type="text" maxlength="  "> <!-- all blanks -->
        </form>
    </body>
</html>