[HtmlUnit] [htmlunit:bugs] #2001 Insufficient validation of input elements

RBRi via HtmlUnit-develop <[email protected]> Wed, 05 Dec 2018 19:37:11 -0000
Newsgroups gmane.comp.java.htmlunit.devel
Message-ID </p/htmlunit/bugs/2001/58f60190700b263b6bf6be5b8dcb5e0f2db87510.bugs@htmlunit.p.sourceforge.net>
Because reaching you by mail failed....

There is a class RegExpToJavaConverter that converts JS regex to java regex. Maybe you can use this and than work with the java regex.


---

** [bugs:#2001] Insufficient validation of input elements**

**Status:** open
**Group:** 2.33
**Created:** Mon Nov 19, 2018 12:29 PM UTC by Anton
**Last Updated:** Mon Nov 19, 2018 06:21 PM UTC
**Owner:** nobody


Hi All,

It seems that current implementation supports only required attribute validation for input element (attribute required and value is not empty).

But html specify more options:
- maxlength
- min
- max
- pattern

So it would be nice to use them to calculate input validity before form submission.
If it would be necessary I could provide patch for this feature a bit later.

Best regards


---

Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/htmlunit/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

_______________________________________________
HtmlUnit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop