Regula.js browser support

43 views
Skip to first unread message

Adrien Bebe

unread,
Jul 28, 2014, 4:13:50 AM7/28/14
to regula-v...@googlegroups.com
Hi all,

When investigating on choosing to experiment a javascript framework/library, I look into these criterias:
  • license
  • dependencies
  • browser support
  • device support
  • weight
  • community
  • history, contributions, contributors
I found quite a lot of information for all this point regarding regula.js except for the "browser support" point.

I know that regula.js is written in pure javascript but I am looking for personal experiences regarding this point.
  1. Anybody had problems with some browsers? If yes, which?
  2. Is this library actually tested across browsers somehow?
I appreciate your feeback, and thanks for providing such a cool library. The features it brings should be a standard.

Adrien

Vivin Suresh Paliath

unread,
Jul 28, 2014, 12:58:57 PM7/28/14
to Adrien Bebe, regula-v...@googlegroups.com
Hello Adrien,

I haven't explicitly called out browser support because I don't believe Regula uses anything too exotic that should prevent it from working in all browsers. I'm pretty sure it works in all browsers since it doesn't really depend on any non-standard or bleeding-edge features. It's mostly just pure JavaScript (as you mentioned). I know that earlier on there was some issue with IE (regarding accessing individual characters in a string using the subscript notation vs. charAt(i)) but as far as I know there are no other cross-browser issues.

Regula (as of version 1.3) recognizes HTML5 constraints if they are used, but support depends on browser itself or if you are using a shim. If your browser supports it, then Regula will recognize and use it, otherwise it does not. By itself Regula does not mandate the use of HTML5 validation constraints.

I hope this helps!


--
You received this message because you are subscribed to the Google Groups "Regula" group.
To unsubscribe from this group and stop receiving emails from it, send an email to regula-validat...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Ruin untold;
And thine own sadness,
Sing in the grass,
When eve has forgot, that no more hear common things that gleam and pass;
But seek alone to lip, sad Rose of love and ruin untold;
And thine own mother
Can know it as I know
More than another
What makes your own sadness,
Set in her eyes.

$s="01:11:02:11:01:11:02:13:01:11:01:11:01:13:02:12:01:13:01:11:
04:11:06:12:04:11:01:12:01:13:02:12:01:14:01:13:01:11:03:12:
01:11:04:12:02:11:01:11:01:13:02:11:03:11:06:11:01:11:05:12:
02:11:01:11:01:13:02:11:02:12:01:12:04:11:06:12:01:11:04:12:
04:11:01:12:03:12:01:12:01:11:01:12:01:12:02:11:01:11:01:13:
02:11:01:02:11:01:12:02";
@a=split(/:/,$s);$j="";foreach$c(@a) {@n=split(//,$c);$j.=$n[0]x$n[1];}
for($i=0;$i<$j=~y///c;$i+=8){print chr(unpack("N",pack("B32",substr("0"x32 .substr($j,$i,8),-32))));}

Adrien Bebe

unread,
Jul 29, 2014, 4:52:48 AM7/29/14
to regula-v...@googlegroups.com, adrien....@gmail.com
Hi Vivin,

Thank you for your quick feedback. Alright, I guess it will be a try and error process then. Probably not something everyone can afford unfortunately but I'd be ready to give it a try. Yes, as usual, IE causes a bunch of problems (and extra work as a result) but I guess nothing unfixable.

Not a fan of HTML5 constraints, the implementation/specification seems rather simple for now. I guess that your library makes a good job at providing much more advanced features.

Looking forward to play around with regula.js :)

One other thing, regula.js seems pretty chunky compared to other validation libraries, regula.js is 26Kb when minified & gzipped whereas other validation libraries can be much lighter - ie. validate.js is just over 2Kb when minified & gzipped, and parsley.js is 6.6Kb when minified & gzipped - is this simply because your library "does more" ? I'm asking you but you may not know those libraries either (I just found them yestersday).


Do you have plans to provide a download builder, to download "only" the part of the library that I "need" ? something like what jQueryUI and Modernizr use? This may be a good solution to help devs to use a version that is as light as possible. see http://jqueryui.com/download/ and http://modernizr.com/download/

Thanks!
Adrien

Vivin Paliath

unread,
Feb 7, 2015, 8:06:55 PM2/7/15
to regula-v...@googlegroups.com, adrien....@gmail.com
Hello Adrien,

I am so sorry for this late response. It seems that some of the group settings changed due to which I wasn't being notified of any new messages.

I don't have any plans to make this smaller, unfortunately. The thing is that the library doesn't make sense without all of its components and they all kind of work together. I agree it is a bit chunky and I hope to make it smaller in later versions. Once again, I am so sorry for this very late response!

Vivin
Reply all
Reply to author
Forward
0 new messages