Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element.validity.badInput is not resolved for input type text in IE 9 #81

Open
dipakchandranp opened this issue Aug 8, 2018 · 2 comments

Comments

@dipakchandranp
Copy link

I have an input field with type "text", and whenever blur event triggers in the field, the IE9 browser shows the following error message:

SCRIPT5007: Unable to get value of the property 'badInput': object is null or undefined

When I look through the plugin.js found the following code snippet:

/* check these for validity.badInput */
var input_checked = ['email', 'date', 'month', 'week', 'time', 'datetime', 'datetime-local', 'number', 'range', 'color'];

There is no text field included here. Is this something going to br fixed from hypreform?

@Boldewyn
Copy link
Contributor

Boldewyn commented Aug 8, 2018

Thanks for the report!

Actually, there are two things going on here. It’s no oversight, that text is missing from the list you quote, because a plain text input can never suffer from a bad input constraint validation.

Nevertheless, the property element.validityState.badInput should be there and readable, even in IE9 (it’s just always false). I'll try to reproduce that error in an IE9 setup and report back, if I find anything.

@Boldewyn
Copy link
Contributor

Could you test the new v0.9.21 in your setup, please? I’ve worked in exactly that area (validity.badInput wasn’t found in some instance), and the problem might be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants