Implement value sanitization on HTMLInputElement

This commit is contained in:
Keith Yeung 2017-08-27 12:25:19 -07:00
parent 9d60333af9
commit 8203605c04
13 changed files with 187 additions and 285 deletions

View file

@ -51,6 +51,8 @@
input.type = types[j].type; // change state
if (types[j].sanitizedValue || types[j].sanitizedValue === "") {
assert_equals(input.value, types[j].sanitizedValue, "input.value should be " + types[j].sanitizedValue + " after change of state");
} else if (types[i].sanitizedValue || types[i].sanitizedValue === "") {
assert_equals(input.value, types[i].sanitizedValue, "input.value should be " + types[i].sanitizedValue + " after change of state");
} else {
assert_equals(input.value, " foo\rbar ", "input.value should be ' foo\\rbar ' after change of state");
}