8000 regression after fix for bug #2141 (jquery-validation 1.18.0 doesn't work anymore with IE11) · Issue #2211 · jquery-validation/jquery-validation · GitHub
[go: up one dir, main page]

Skip to content
regression after fix for bug #2141 (jquery-validation 1.18.0 doesn't work anymore with IE11) #2211
Closed
@tbl0605

Description

@tbl0605

Hi,
I've tried latest 1.18.0 release, sadly the patch #2142 for bug #2141 introduced a bad regression on (at least) IE11, because validation doesn't work anymore!

The culprit is following code path in jquery.validate.js:

		if ( element.isContentEditable ) {
			val = $element.text();
		} else {
			val = $element.val();
		}

When you try my code example at https://liveweave.com/N6xRPw using latest Chrome or Firefox, validation works correctly because element.isContentEditable is false.
But when you use IE11, element.isContentEditable seems to be always true and jquery-validation "sees" a blank field because the variable "val" is always set to "". On the other side, element.hasAttribute( "contenteditable" ) correctly returns false on IE11.

Reverting the patch #2142 solves the problem for me, and everything seems to work again like it did in 1.17.0

Please could you have a look at this problem and confirm me that you can reproduce it on an other IE11 installation?
It would be then great to have a 1.18.1 release, because it's a very nasty regression ;)

Thank you!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0