Having a bit of trouble with @required. As far as I can tell this test
case follows the spec. But it won't work, causing invalid forms to
submit in a larger application:
http://ryancannon.com/wp-content/attic/js/webforms2/test.html
Is this a problem with the library or with my implementation?
ThewillValidateattribute of a form control element must return true if all of the following conditions are met:
- The control is associated with a form (or several forms).
- The control does not have a repetition template as an ancestor.
- The control does not have a
datalistelement as an ancestor.- The control has a name.
- The control is not disabled and not readonly.
- The control is not of type
hidden,button,reset,add,remove,move-up, ormove-down.- The control is not an
outputelement.It must return false if any of these conditions are not met.