mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -1,8 +0,0 @@
|
|||
[password.html]
|
||||
type: testharness
|
||||
[Value sanitization algorithm should strip line breaks for password]
|
||||
expected: FAIL
|
||||
|
||||
[sanitization algorithm strips line breaks]
|
||||
expected: FAIL
|
||||
|
|
@ -1,11 +1,5 @@
|
|||
[telephone.html]
|
||||
type: testharness
|
||||
[User agents must not allow users to insert "LF" (U+000A)]
|
||||
expected: FAIL
|
||||
|
||||
[User agents must not allow users to insert "CR" (U+000D)]
|
||||
expected: FAIL
|
||||
|
||||
[The value attribute, if specified, must have a value that contains no "LF" (U+000A)]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
[text.html]
|
||||
type: testharness
|
||||
[Value sanitization algorithm should strip line breaks for text]
|
||||
expected: FAIL
|
||||
|
||||
[valueAsDate attribute must return null for text]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -18,9 +15,6 @@
|
|||
[stepUp does not apply for text]
|
||||
expected: FAIL
|
||||
|
||||
[Value sanitization algorithm should strip line breaks for search]
|
||||
expected: FAIL
|
||||
|
||||
[valueAsDate attribute must return null for search]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,23 +1,8 @@
|
|||
[type-change-state.html]
|
||||
type: testharness
|
||||
[change state from hidden to text]
|
||||
expected: FAIL
|
||||
|
||||
[change state from hidden to search]
|
||||
expected: FAIL
|
||||
|
||||
[change state from hidden to tel]
|
||||
expected: FAIL
|
||||
|
||||
[change state from hidden to url]
|
||||
expected: FAIL
|
||||
|
||||
[change state from hidden to email]
|
||||
expected: FAIL
|
||||
|
||||
[change state from hidden to password]
|
||||
expected: FAIL
|
||||
|
||||
[change state from hidden to datetime]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -42,21 +27,9 @@
|
|||
[change state from hidden to color]
|
||||
expected: FAIL
|
||||
|
||||
[change state from text to search]
|
||||
expected: FAIL
|
||||
|
||||
[change state from text to tel]
|
||||
expected: FAIL
|
||||
|
||||
[change state from text to url]
|
||||
expected: FAIL
|
||||
|
||||
[change state from text to email]
|
||||
expected: FAIL
|
||||
|
||||
[change state from text to password]
|
||||
expected: FAIL
|
||||
|
||||
[change state from text to datetime]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -81,21 +54,9 @@
|
|||
[change state from text to color]
|
||||
expected: FAIL
|
||||
|
||||
[change state from search to text]
|
||||
expected: FAIL
|
||||
|
||||
[change state from search to tel]
|
||||
expected: FAIL
|
||||
|
||||
[change state from search to url]
|
||||
expected: FAIL
|
||||
|
||||
[change state from search to email]
|
||||
expected: FAIL
|
||||
|
||||
[change state from search to password]
|
||||
expected: FAIL
|
||||
|
||||
[change state from search to datetime]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -120,21 +81,9 @@
|
|||
[change state from search to color]
|
||||
expected: FAIL
|
||||
|
||||
[change state from tel to text]
|
||||
expected: FAIL
|
||||
|
||||
[change state from tel to search]
|
||||
expected: FAIL
|
||||
|
||||
[change state from tel to url]
|
||||
expected: FAIL
|
||||
|
||||
[change state from tel to email]
|
||||
expected: FAIL
|
||||
|
||||
[change state from tel to password]
|
||||
expected: FAIL
|
||||
|
||||
[change state from tel to datetime]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -168,9 +117,6 @@
|
|||
[change state from url to tel]
|
||||
expected: FAIL
|
||||
|
||||
[change state from url to email]
|
||||
expected: FAIL
|
||||
|
||||
[change state from url to password]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -198,19 +144,25 @@
|
|||
[change state from url to color]
|
||||
expected: FAIL
|
||||
|
||||
[change state from email to text]
|
||||
[change state from email to hidden]
|
||||
expected: FAIL
|
||||
|
||||
[change state from email to search]
|
||||
[change state from email to checkbox]
|
||||
expected: FAIL
|
||||
|
||||
[change state from email to tel]
|
||||
[change state from email to radio]
|
||||
expected: FAIL
|
||||
|
||||
[change state from email to url]
|
||||
[change state from email to submit]
|
||||
expected: FAIL
|
||||
|
||||
[change state from email to password]
|
||||
[change state from email to image]
|
||||
expected: FAIL
|
||||
|
||||
[change state from email to reset]
|
||||
expected: FAIL
|
||||
|
||||
[change state from email to button]
|
||||
expected: FAIL
|
||||
|
||||
[change state from email to datetime]
|
||||
|
@ -237,18 +189,6 @@
|
|||
[change state from email to color]
|
||||
expected: FAIL
|
||||
|
||||
[change state from password to text]
|
||||
expected: FAIL
|
||||
|
||||
[change state from password to search]
|
||||
expected: FAIL
|
||||
|
||||
[change state from password to tel]
|
||||
expected: FAIL
|
||||
|
||||
[change state from password to url]
|
||||
expected: FAIL
|
||||
|
||||
[change state from password to email]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -315,24 +255,30 @@
|
|||
[change state from datetime to color]
|
||||
expected: FAIL
|
||||
|
||||
[change state from date to text]
|
||||
[change state from date to hidden]
|
||||
expected: FAIL
|
||||
|
||||
[change state from date to search]
|
||||
[change state from date to checkbox]
|
||||
expected: FAIL
|
||||
|
||||
[change state from date to tel]
|
||||
[change state from date to radio]
|
||||
expected: FAIL
|
||||
|
||||
[change state from date to url]
|
||||
[change state from date to submit]
|
||||
expected: FAIL
|
||||
|
||||
[change state from date to image]
|
||||
expected: FAIL
|
||||
|
||||
[change state from date to reset]
|
||||
expected: FAIL
|
||||
|
||||
[change state from date to button]
|
||||
expected: FAIL
|
||||
|
||||
[change state from date to email]
|
||||
expected: FAIL
|
||||
|
||||
[change state from date to password]
|
||||
expected: FAIL
|
||||
|
||||
[change state from date to datetime]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -354,24 +300,30 @@
|
|||
[change state from date to color]
|
||||
expected: FAIL
|
||||
|
||||
[change state from month to text]
|
||||
[change state from month to hidden]
|
||||
expected: FAIL
|
||||
|
||||
[change state from month to search]
|
||||
[change state from month to checkbox]
|
||||
expected: FAIL
|
||||
|
||||
[change state from month to tel]
|
||||
[change state from month to radio]
|
||||
expected: FAIL
|
||||
|
||||
[change state from month to url]
|
||||
[change state from month to submit]
|
||||
expected: FAIL
|
||||
|
||||
[change state from month to image]
|
||||
expected: FAIL
|
||||
|
||||
[change state from month to reset]
|
||||
expected: FAIL
|
||||
|
||||
[change state from month to button]
|
||||
expected: FAIL
|
||||
|
||||
[change state from month to email]
|
||||
expected: FAIL
|
||||
|
||||
[change state from month to password]
|
||||
expected: FAIL
|
||||
|
||||
[change state from month to datetime]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -393,24 +345,30 @@
|
|||
[change state from month to color]
|
||||
expected: FAIL
|
||||
|
||||
[change state from week to text]
|
||||
[change state from week to hidden]
|
||||
expected: FAIL
|
||||
|
||||
[change state from week to search]
|
||||
[change state from week to checkbox]
|
||||
expected: FAIL
|
||||
|
||||
[change state from week to tel]
|
||||
[change state from week to radio]
|
||||
expected: FAIL
|
||||
|
||||
[change state from week to url]
|
||||
[change state from week to submit]
|
||||
expected: FAIL
|
||||
|
||||
[change state from week to image]
|
||||
expected: FAIL
|
||||
|
||||
[change state from week to reset]
|
||||
expected: FAIL
|
||||
|
||||
[change state from week to button]
|
||||
expected: FAIL
|
||||
|
||||
[change state from week to email]
|
||||
expected: FAIL
|
||||
|
||||
[change state from week to password]
|
||||
expected: FAIL
|
||||
|
||||
[change state from week to datetime]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -432,24 +390,30 @@
|
|||
[change state from week to color]
|
||||
expected: FAIL
|
||||
|
||||
[change state from time to text]
|
||||
[change state from time to hidden]
|
||||
expected: FAIL
|
||||
|
||||
[change state from time to search]
|
||||
[change state from time to checkbox]
|
||||
expected: FAIL
|
||||
|
||||
[change state from time to tel]
|
||||
[change state from time to radio]
|
||||
expected: FAIL
|
||||
|
||||
[change state from time to url]
|
||||
[change state from time to submit]
|
||||
expected: FAIL
|
||||
|
||||
[change state from time to image]
|
||||
expected: FAIL
|
||||
|
||||
[change state from time to reset]
|
||||
expected: FAIL
|
||||
|
||||
[change state from time to button]
|
||||
expected: FAIL
|
||||
|
||||
[change state from time to email]
|
||||
expected: FAIL
|
||||
|
||||
[change state from time to password]
|
||||
expected: FAIL
|
||||
|
||||
[change state from time to datetime]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -471,24 +435,30 @@
|
|||
[change state from time to color]
|
||||
expected: FAIL
|
||||
|
||||
[change state from number to text]
|
||||
[change state from number to hidden]
|
||||
expected: FAIL
|
||||
|
||||
[change state from number to search]
|
||||
[change state from number to checkbox]
|
||||
expected: FAIL
|
||||
|
||||
[change state from number to tel]
|
||||
[change state from number to radio]
|
||||
expected: FAIL
|
||||
|
||||
[change state from number to url]
|
||||
[change state from number to submit]
|
||||
expected: FAIL
|
||||
|
||||
[change state from number to image]
|
||||
expected: FAIL
|
||||
|
||||
[change state from number to reset]
|
||||
expected: FAIL
|
||||
|
||||
[change state from number to button]
|
||||
expected: FAIL
|
||||
|
||||
[change state from number to email]
|
||||
expected: FAIL
|
||||
|
||||
[change state from number to password]
|
||||
expected: FAIL
|
||||
|
||||
[change state from number to datetime]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -510,24 +480,30 @@
|
|||
[change state from number to color]
|
||||
expected: FAIL
|
||||
|
||||
[change state from range to text]
|
||||
[change state from range to hidden]
|
||||
expected: FAIL
|
||||
|
||||
[change state from range to search]
|
||||
[change state from range to checkbox]
|
||||
expected: FAIL
|
||||
|
||||
[change state from range to tel]
|
||||
[change state from range to radio]
|
||||
expected: FAIL
|
||||
|
||||
[change state from range to url]
|
||||
[change state from range to submit]
|
||||
expected: FAIL
|
||||
|
||||
[change state from range to image]
|
||||
expected: FAIL
|
||||
|
||||
[change state from range to reset]
|
||||
expected: FAIL
|
||||
|
||||
[change state from range to button]
|
||||
expected: FAIL
|
||||
|
||||
[change state from range to email]
|
||||
expected: FAIL
|
||||
|
||||
[change state from range to password]
|
||||
expected: FAIL
|
||||
|
||||
[change state from range to datetime]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -549,24 +525,30 @@
|
|||
[change state from range to color]
|
||||
expected: FAIL
|
||||
|
||||
[change state from color to text]
|
||||
[change state from color to hidden]
|
||||
expected: FAIL
|
||||
|
||||
[change state from color to search]
|
||||
[change state from color to checkbox]
|
||||
expected: FAIL
|
||||
|
||||
[change state from color to tel]
|
||||
[change state from color to radio]
|
||||
expected: FAIL
|
||||
|
||||
[change state from color to url]
|
||||
[change state from color to submit]
|
||||
expected: FAIL
|
||||
|
||||
[change state from color to image]
|
||||
expected: FAIL
|
||||
|
||||
[change state from color to reset]
|
||||
expected: FAIL
|
||||
|
||||
[change state from color to button]
|
||||
expected: FAIL
|
||||
|
||||
[change state from color to email]
|
||||
expected: FAIL
|
||||
|
||||
[change state from color to password]
|
||||
expected: FAIL
|
||||
|
||||
[change state from color to datetime]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -588,24 +570,9 @@
|
|||
[change state from color to range]
|
||||
expected: FAIL
|
||||
|
||||
[change state from checkbox to text]
|
||||
expected: FAIL
|
||||
|
||||
[change state from checkbox to search]
|
||||
expected: FAIL
|
||||
|
||||
[change state from checkbox to tel]
|
||||
expected: FAIL
|
||||
|
||||
[change state from checkbox to url]
|
||||
expected: FAIL
|
||||
|
||||
[change state from checkbox to email]
|
||||
expected: FAIL
|
||||
|
||||
[change state from checkbox to password]
|
||||
expected: FAIL
|
||||
|
||||
[change state from checkbox to datetime]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -630,24 +597,9 @@
|
|||
[change state from checkbox to color]
|
||||
expected: FAIL
|
||||
|
||||
[change state from radio to text]
|
||||
expected: FAIL
|
||||
|
||||
[change state from radio to search]
|
||||
expected: FAIL
|
||||
|
||||
[change state from radio to tel]
|
||||
expected: FAIL
|
||||
|
||||
[change state from radio to url]
|
||||
expected: FAIL
|
||||
|
||||
[change state from radio to email]
|
||||
expected: FAIL
|
||||
|
||||
[change state from radio to password]
|
||||
expected: FAIL
|
||||
|
||||
[change state from radio to datetime]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -672,24 +624,9 @@
|
|||
[change state from radio to color]
|
||||
expected: FAIL
|
||||
|
||||
[change state from submit to text]
|
||||
expected: FAIL
|
||||
|
||||
[change state from submit to search]
|
||||
expected: FAIL
|
||||
|
||||
[change state from submit to tel]
|
||||
expected: FAIL
|
||||
|
||||
[change state from submit to url]
|
||||
expected: FAIL
|
||||
|
||||
[change state from submit to email]
|
||||
expected: FAIL
|
||||
|
||||
[change state from submit to password]
|
||||
expected: FAIL
|
||||
|
||||
[change state from submit to datetime]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -714,24 +651,9 @@
|
|||
[change state from submit to color]
|
||||
expected: FAIL
|
||||
|
||||
[change state from image to text]
|
||||
expected: FAIL
|
||||
|
||||
[change state from image to search]
|
||||
expected: FAIL
|
||||
|
||||
[change state from image to tel]
|
||||
expected: FAIL
|
||||
|
||||
[change state from image to url]
|
||||
expected: FAIL
|
||||
|
||||
[change state from image to email]
|
||||
expected: FAIL
|
||||
|
||||
[change state from image to password]
|
||||
expected: FAIL
|
||||
|
||||
[change state from image to datetime]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -756,24 +678,9 @@
|
|||
[change state from image to color]
|
||||
expected: FAIL
|
||||
|
||||
[change state from reset to text]
|
||||
expected: FAIL
|
||||
|
||||
[change state from reset to search]
|
||||
expected: FAIL
|
||||
|
||||
[change state from reset to tel]
|
||||
expected: FAIL
|
||||
|
||||
[change state from reset to url]
|
||||
expected: FAIL
|
||||
|
||||
[change state from reset to email]
|
||||
expected: FAIL
|
||||
|
||||
[change state from reset to password]
|
||||
expected: FAIL
|
||||
|
||||
[change state from reset to datetime]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -798,24 +705,9 @@
|
|||
[change state from reset to color]
|
||||
expected: FAIL
|
||||
|
||||
[change state from button to text]
|
||||
expected: FAIL
|
||||
|
||||
[change state from button to search]
|
||||
expected: FAIL
|
||||
|
||||
[change state from button to tel]
|
||||
expected: FAIL
|
||||
|
||||
[change state from button to url]
|
||||
expected: FAIL
|
||||
|
||||
[change state from button to email]
|
||||
expected: FAIL
|
||||
|
||||
[change state from button to password]
|
||||
expected: FAIL
|
||||
|
||||
[change state from button to datetime]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -861,24 +753,30 @@
|
|||
[change state from password to datetime-local]
|
||||
expected: FAIL
|
||||
|
||||
[change state from datetime-local to text]
|
||||
[change state from datetime-local to hidden]
|
||||
expected: FAIL
|
||||
|
||||
[change state from datetime-local to search]
|
||||
[change state from datetime-local to checkbox]
|
||||
expected: FAIL
|
||||
|
||||
[change state from datetime-local to tel]
|
||||
[change state from datetime-local to radio]
|
||||
expected: FAIL
|
||||
|
||||
[change state from datetime-local to url]
|
||||
[change state from datetime-local to submit]
|
||||
expected: FAIL
|
||||
|
||||
[change state from datetime-local to image]
|
||||
expected: FAIL
|
||||
|
||||
[change state from datetime-local to reset]
|
||||
expected: FAIL
|
||||
|
||||
[change state from datetime-local to button]
|
||||
expected: FAIL
|
||||
|
||||
[change state from datetime-local to email]
|
||||
expected: FAIL
|
||||
|
||||
[change state from datetime-local to password]
|
||||
expected: FAIL
|
||||
|
||||
[change state from datetime-local to date]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
[url.html]
|
||||
type: testharness
|
||||
[The value must not be set with "LF" (U+000A) or "CR" (U+000D)]
|
||||
expected: FAIL
|
||||
|
||||
[The value sanitization algorithm is as follows: Strip line breaks from the value]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -54,39 +54,8 @@
|
|||
[value IDL attribute of input type datetime-local with value attribute]
|
||||
expected: FAIL
|
||||
|
||||
[value IDL attribute of input type text without value attribute]
|
||||
expected: FAIL
|
||||
|
||||
[value IDL attribute of input type text with value attribute]
|
||||
expected: FAIL
|
||||
|
||||
[value IDL attribute of input type search without value attribute]
|
||||
expected: FAIL
|
||||
|
||||
[value IDL attribute of input type search with value attribute]
|
||||
expected: FAIL
|
||||
|
||||
[value IDL attribute of input type tel without value attribute]
|
||||
expected: FAIL
|
||||
|
||||
[value IDL attribute of input type tel with value attribute]
|
||||
expected: FAIL
|
||||
|
||||
[value IDL attribute of input type url without value attribute]
|
||||
expected: FAIL
|
||||
|
||||
[value IDL attribute of input type url with value attribute]
|
||||
expected: FAIL
|
||||
|
||||
[value IDL attribute of input type email without value attribute]
|
||||
expected: FAIL
|
||||
|
||||
[value IDL attribute of input type email with value attribute]
|
||||
expected: FAIL
|
||||
|
||||
[value IDL attribute of input type password without value attribute]
|
||||
expected: FAIL
|
||||
|
||||
[value IDL attribute of input type password with value attribute]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue