| Index: LayoutTests/imported/web-platform-tests/html/semantics/forms/constraints/support/validator.js
|
| diff --git a/LayoutTests/imported/web-platform-tests/html/semantics/forms/constraints/support/validator.js b/LayoutTests/imported/web-platform-tests/html/semantics/forms/constraints/support/validator.js
|
| index 12a88c1fc6eedc2ec71b1dc773dc779eb70a85d8..2ff425166420c7d852d643ed1a300b74141a5556 100644
|
| --- a/LayoutTests/imported/web-platform-tests/html/semantics/forms/constraints/support/validator.js
|
| +++ b/LayoutTests/imported/web-platform-tests/html/semantics/forms/constraints/support/validator.js
|
| @@ -273,14 +273,16 @@ var validator = {
|
| },
|
|
|
| set_dirty: function(ctl) {
|
| - document.disgnMode = "on";
|
| + document.designMode = "on";
|
| ctl.focus();
|
| var old_value = ctl.value;
|
| ctl.value = "a";
|
| ctl.value = old_value;
|
| - ctl.setSelectionRange(ctl.value.length, ctl.value.length);
|
| + if (ctl.type !== 'email') {
|
| + ctl.setSelectionRange(ctl.value.length, ctl.value.length);
|
| + }
|
| document.execCommand("Delete");
|
| - document.disgnMode = "off";
|
| + document.designMode = "off";
|
| },
|
|
|
| pre_check: function(ctl, item) {
|
|
|