]> code.delx.au - gnu-emacs-elpa/commitdiff
Allow "minlength"
authorMichael[tm] Smith <mike@w3.org>
Sun, 27 Dec 2015 05:10:11 +0000 (14:10 +0900)
committerMichael[tm] Smith <mike@w3.org>
Sun, 27 Dec 2015 05:10:11 +0000 (14:10 +0900)
Fixes https://github.com/validator/validator/issues/164

web-forms.rnc
web-forms2.rnc

index c58e652485fdf0beca0b328ef5ddf32fa5c785c8..edc00b22848d57e72712db58470664486a8a1b04 100644 (file)
@@ -31,6 +31,11 @@ datatypes w = "http://whattf.org/datatype-draft"
                        common.data.integer.non-negative
                }
 
+       shared-form.attrs.minlength =
+               attribute minlength {
+                       common.data.integer.non-negative
+               }
+
        shared-form.attrs.size = 
                attribute size {
                        common.data.integer.positive
index 9aef196190ebaa94502b2fcbeb89f2745f3afbfd..0d2699d873fbdd2c7ef6a2e09253cb54a92e1bab 100644 (file)
@@ -90,6 +90,7 @@ datatypes w = "http://whattf.org/datatype-draft"
                &       shared-form.attrs.autofocus?
                &       input.attrs.list?
                &       shared-form.attrs.maxlength?
+               &       shared-form.attrs.minlength?
                &       shared-form.attrs.pattern?
                &       shared-form.attrs.placeholder?
                &       shared-form.attrs.readonly?
@@ -651,6 +652,7 @@ datatypes w = "http://whattf.org/datatype-draft"
                empty
        textarea.attrs &=
                (       shared-form.attrs.maxlength?
+               &       shared-form.attrs.minlength?
                &       shared-form.attrs.autofocus? 
                &       shared-form.attrs.required? 
                &       shared-form.attrs.placeholder?