File: lacks_uncapped_inputs-bad.html

package info (click to toggle)
libtest-www-mechanize-perl 1.52-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 372 kB
  • sloc: perl: 2,570; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 670 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<html>
    <head>
        <title>Title</title>
    </head>
    <body>
        <form name="testform">
            <input name="foo" type="text" size="12"> <!-- this is one bad one with a missin 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 -->
        </form>
    </body>
</html>