I'm trying the pattern attribute for the first time, and I can't get it to work (my browser does support it, though).

Right now I have:

input type="text" pattern="[a-zA-Z0-9]{6}" name="formName"

The first problem is that is doesn't notify me if it's blank; the second problem is that if I do type in something, it won't accept it. I want it to accept alphanumeric characters and be exactly 6 characters is length. I tried it with forward slashes and a few other variations.

Edit
Report