GithubHelp home page GithubHelp logo

chemerisuk / better-form-validation Goto Github PK

View Code? Open in Web Editor NEW
60.0 60.0 10.0 794 KB

Form validation polyfill for better-dom

Home Page: http://chemerisuk.github.io/better-form-validation/

License: MIT License

JavaScript 84.36% CSS 2.71% HTML 12.92%

better-form-validation's People

Contributors

chemerisuk avatar lomotech avatar lucjan avatar tkywtnb avatar yucao24hours avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

better-form-validation's Issues

Input field background color is overridden

Hello,

The script sets the following style:

DOM.importStyles("input[aria-invalid]", "background:none no-repeat right center / auto 100% content-box");

If the input field has an initial background-color value it will become transparent when validation kicks in. You should probably set the individual background properties such as background-repeat etc.

Cheers!

Migrate to NPM

Hey,

please provide the package.json and publish this package and it's dependencies to NPM.

Bug: popover.l10n is not defined

When I include better-form-validation.js in my project, and the required dependencies, with the following load order:

'better-dom.js',
'better-18n-plugin.js',
'better-popover-plugin.js',
'better-form-validation.js',

And I submit the form, I get this error message in the console: Uncaught TypeError: popover.l10n is not a function which seems to originate in better-form-validation.js on line 284

Here's a screenshot showing the issue. I also loaded the page without any other JS just to make sure I wasn't seeing some strange behaviour or collision with another library and still got the error.

screen shot 2015-09-17 at 1 08 32 pm

I tested in Chrome 45.0.2454.93 (64-bit), Firefox 40.0.3 and Safari 8.0.8 (10600.8.9) with identical results.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.