diff --git a/entries/normalizer.xml b/entries/normalizer.xml new file mode 100644 index 0000000..e1b7d0f --- /dev/null +++ b/entries/normalizer.xml @@ -0,0 +1,75 @@ + + + normalizer + + + The value of the element. + + + Prepares/transforms the elements value for validation. + + Note that this method: +

Doesn't change the elements' value, it only changes the value used for validation.

+

Gets the value passed as argument, and "this" within it references the corresponding DOMElement.

+

Needs to return a String value, otherwise it will throw a TypeError exception.

+
+ + Makes "field" required and use a normalizer to trim its value before validating + +Required: + +
+ +]]> +
+ + Makes "url" required and use a normalizer to append 'http://', if not present, to the value of the "url" element before validating + +url: + +
+ +]]> +
+ +