mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Implement value sanitization on HTMLInputElement
This commit is contained in:
parent
9d60333af9
commit
8203605c04
13 changed files with 187 additions and 285 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue