[wpt-sync] Sync PR 21014 - html: fix form constraint validator
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox74 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 21014 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/21014
Details from upstream follow.
Timothy Gu <timothygu99@gmail.com> wrote:
html: fix form constraint validator
This commit applies two fixes to the validator:
Reapply the conditions for each clone of the element created in
iterate_over.This fixes valueMissing.html's "[select] Selected the option with value equals to 1" test, that was failing on all browsers.
Fix the expectation for
validationMessagewhen the element is disabled. This fixes #20825.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
| Assignee | ||
Comment 3•6 years ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 14 tests and 69 subtests
Status Summary
Firefox
OK : 14
PASS: 747
FAIL: 69
Chrome
OK : 14
PASS: 808
FAIL: 8
Safari
OK : 14
PASS: 426
FAIL: 111
Links
Details
Firefox-only Failures
/html/semantics/forms/constraints/form-validation-willValidate.html
[textarea] The willValidate attribute must be false if it has a datalist ancestor: FAIL
[select] The willValidate attribute must be false if it has a datalist ancestor: FAIL
[BUTTON in SUBMIT status] The willValidate attribute must be false if it has a datalist ancestor: FAIL
[output] The willValidate attribute must be false since OUTPUT is not a submittable element: FAIL
New Tests That Don't Pass
/html/semantics/forms/constraints/form-validation-validity-valueMissing.html
[INPUT in DATETIME-LOCAL status] The value attribute is a number(1234567): FAIL (Chrome: PASS)
[INPUT in WEEK status] invalid week string(2000-W00): FAIL (Chrome: PASS)
[INPUT in DATE status] The value attribute is a Date object: FAIL (Chrome: PASS)
[INPUT in DATETIME-LOCAL status] The value attribute is a Date object: FAIL (Chrome: PASS)
[INPUT in MONTH status] The value attribute is a Date object: FAIL (Chrome: PASS)
[INPUT in CHECKBOX status] The checked attribute is false: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in MONTH status] Invalid month string(2000/01): FAIL (Chrome: PASS)
[INPUT in TIME status] Invalid time string(12:00:00:001): FAIL (Chrome: PASS)
[INPUT in DATE status] Invalid date string(9999-99-99): FAIL (Chrome: PASS)
[INPUT in WEEK status] Invalid week string(2000-W99): FAIL (Chrome: PASS)
[INPUT in SEARCH status] The value is empty and required is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in TIME status] Invalid time string(25:00:00): FAIL (Chrome: PASS)
[INPUT in DATE status] The value attribute is a number(1234567): FAIL (Chrome: PASS)
[INPUT in MONTH status] The value attribute is empty string: FAIL (Chrome: PASS)
[INPUT in NUMBER status] The value attribute is empty string: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in TIME status] Invalid time string(12:60:00): FAIL (Chrome: PASS)
[INPUT in DATETIME-LOCAL status] the value attribute is a string(abc): FAIL (Chrome: PASS)
[INPUT in NUMBER status] Value is Math.pow(2, 1024): FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in MONTH status] Invalid month string(37-01): FAIL (Chrome: PASS)
[INPUT in MONTH status] Invalid month string(2000-99): FAIL (Chrome: PASS)
[INPUT in DATE status] Invalid date string(2000/01/01): FAIL (Chrome: PASS)
[INPUT in NUMBER status] Value is a number with some white spaces: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in TEL status] The value is empty and required is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in RADIO status] The checked attribute is false: FAIL (Chrome: FAIL, Safari: FAIL)
[INPUT in TIME status] The value attribute is a number(1234567): FAIL (Chrome: PASS)
[INPUT in URL status] The value is empty and required is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in NUMBER status] Value is a string that cannot be converted to a number: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in DATE status] The value attribute is empty string: FAIL (Chrome: PASS)
[INPUT in EMAIL status] The value is empty and required is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in DATETIME-LOCAL status] Invalid local date and time string(1979-10-99 99:99): FAIL (Chrome: PASS)
[textarea] The value is empty: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in WEEK status] invalid week string(2000-w01): FAIL (Chrome: PASS)
[INPUT in TIME status] The value attribute is empty string: FAIL (Chrome: PASS)
[INPUT in WEEK status] The value attribute is empty string: FAIL (Chrome: PASS)
[INPUT in TIME status] Invalid time string(12:00:60): FAIL (Chrome: PASS)
[INPUT in TEXT status] The value is empty and required is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in FILE status] The Files attribute is null: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in DATE status] Invalid date string(37-01-01): FAIL (Chrome: PASS)
[INPUT in PASSWORD status] The value is empty and required is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in DATETIME-LOCAL status] Invalid local date and time string(2001-12-21 12:00)-two white space: FAIL (Chrome: PASS)
[INPUT in MONTH status] The value attribute is a number(1234567): FAIL (Chrome: PASS)
[INPUT in TIME status] The value attribute is a time object: FAIL (Chrome: PASS)
[INPUT in DATETIME-LOCAL status] The value attribute is empty string: FAIL (Chrome: PASS)
[INPUT in WEEK status] The value attribute is a Date object: FAIL (Chrome: PASS)
[INPUT in WEEK status] The value attribute is a number(1234567): FAIL (Chrome: PASS)
[INPUT in NUMBER status] Value is Math.pow(-2, 1024): FAIL (Chrome: PASS, Safari: FAIL)
/html/semantics/forms/constraints/form-validation-willValidate.html
[textarea] The willValidate attribute must be false if it has a datalist ancestor: FAIL (Chrome: PASS, Safari: PASS)
[select] The willValidate attribute must be false if it has a datalist ancestor: FAIL (Chrome: PASS, Safari: PASS)
[BUTTON in SUBMIT status] The willValidate attribute must be false if it has a datalist ancestor: FAIL (Chrome: PASS, Safari: PASS)
[output] The willValidate attribute must be false since OUTPUT is not a submittable element: FAIL (Chrome: PASS, Safari: PASS)
/html/semantics/forms/constraints/form-validation-validity-stepMismatch.html
[INPUT in NUMBER status] The step attribute is not set and the value attribute is a floating number: FAIL (Chrome: PASS, Safari: FAIL)
/html/semantics/forms/constraints/form-validation-validity-valid.html
[INPUT in EMAIL status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in TEXT status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in SEARCH status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in NUMBER status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS, Safari: FAIL)
[textarea] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in TEL status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in RADIO status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: FAIL, Safari: FAIL)
[INPUT in DATE status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS)
[INPUT in URL status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in FILE status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in TIME status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS)
[INPUT in PASSWORD status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in CHECKBOX status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in MONTH status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS)
[INPUT in DATETIME-LOCAL status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS)
[INPUT in WEEK status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS)
/html/semantics/forms/constraints/form-validation-validity-rangeUnderflow.html
[INPUT in NUMBER status] The value is less than min(special floating number): FAIL (Chrome: PASS, Safari: FAIL)
/html/semantics/forms/constraints/form-validation-validity-rangeOverflow.html
[INPUT in NUMBER status] The value is greater than max(special floating number): FAIL (Chrome: PASS, Safari: FAIL)
| Assignee | ||
Comment 4•6 years ago
|
||
CI Results
Ran 13 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 53 tests
Status Summary
Firefox
OK : 14
PASS: 747[['GitHub']] 786[[u'Gecko-android-em-7.0-x86_64-debug-geckoview', u'Gecko-android-em-7.0-x86_64-opt-geckoview', u'Gecko-linux64-asan-opt', u'Gecko-linux64-debug', u'Gecko-linux64-opt', u'Gecko-linux64-qr-debug', u'Gecko-linux64-qr-opt', u'Gecko-windows10-64-debug', u'Gecko-windows10-64-opt', u'Gecko-windows10-64-qr-debug', u'Gecko-windows10-64-qr-opt', u'Gecko-windows7-32-debug', u'Gecko-windows7-32-opt']]
FAIL: 69
Chrome
OK : 14
PASS: 808
FAIL: 8
Safari
OK : 14
PASS: 426
FAIL: 111
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
Firefox-only Failures
/html/semantics/forms/constraints/form-validation-willValidate.html
[textarea] The willValidate attribute must be false if it has a datalist ancestor: FAIL
[select] The willValidate attribute must be false if it has a datalist ancestor: FAIL
[BUTTON in SUBMIT status] The willValidate attribute must be false if it has a datalist ancestor: FAIL
[output] The willValidate attribute must be false since OUTPUT is not a submittable element: FAIL
New Tests That Don't Pass
/html/semantics/forms/constraints/form-validation-validity-rangeUnderflow.html
[INPUT in NUMBER status] The value is less than min(special floating number): FAIL (Chrome: PASS, Safari: FAIL)
/html/semantics/forms/constraints/form-validation-validity-stepMismatch.html
[INPUT in NUMBER status] The step attribute is not set and the value attribute is a floating number: FAIL (Chrome: PASS, Safari: FAIL)
/html/semantics/forms/constraints/form-validation-willValidate.html
[textarea] The willValidate attribute must be false if it has a datalist ancestor: FAIL (Chrome: PASS, Safari: PASS)
[select] The willValidate attribute must be false if it has a datalist ancestor: FAIL (Chrome: PASS, Safari: PASS)
[BUTTON in SUBMIT status] The willValidate attribute must be false if it has a datalist ancestor: FAIL (Chrome: PASS, Safari: PASS)
[output] The willValidate attribute must be false since OUTPUT is not a submittable element: FAIL (Chrome: PASS, Safari: PASS)
/html/semantics/forms/constraints/form-validation-validity-valueMissing.html
[INPUT in DATETIME-LOCAL status] The value attribute is a number(1234567): FAIL (Chrome: PASS)
[INPUT in WEEK status] invalid week string(2000-W00): FAIL (Chrome: PASS)
[INPUT in DATE status] The value attribute is a Date object: FAIL (Chrome: PASS)
[INPUT in DATETIME-LOCAL status] The value attribute is a Date object: FAIL (Chrome: PASS)
[INPUT in MONTH status] The value attribute is a Date object: FAIL (Chrome: PASS)
[INPUT in CHECKBOX status] The checked attribute is false: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in MONTH status] Invalid month string(2000/01): FAIL (Chrome: PASS)
[INPUT in TIME status] Invalid time string(12:00:00:001): FAIL (Chrome: PASS)
[INPUT in DATE status] Invalid date string(9999-99-99): FAIL (Chrome: PASS)
[INPUT in WEEK status] Invalid week string(2000-W99): FAIL (Chrome: PASS)
[INPUT in SEARCH status] The value is empty and required is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in TIME status] Invalid time string(25:00:00): FAIL (Chrome: PASS)
[INPUT in DATE status] The value attribute is a number(1234567): FAIL (Chrome: PASS)
[INPUT in MONTH status] The value attribute is empty string: FAIL (Chrome: PASS)
[INPUT in NUMBER status] The value attribute is empty string: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in TIME status] Invalid time string(12:60:00): FAIL (Chrome: PASS)
[INPUT in DATETIME-LOCAL status] the value attribute is a string(abc): FAIL (Chrome: PASS)
[INPUT in NUMBER status] Value is Math.pow(2, 1024): FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in MONTH status] Invalid month string(37-01): FAIL (Chrome: PASS)
[INPUT in MONTH status] Invalid month string(2000-99): FAIL (Chrome: PASS)
[INPUT in DATE status] Invalid date string(2000/01/01): FAIL (Chrome: PASS)
[INPUT in NUMBER status] Value is a number with some white spaces: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in TEL status] The value is empty and required is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in RADIO status] The checked attribute is false: FAIL (Chrome: FAIL, Safari: FAIL)
[INPUT in TIME status] The value attribute is a number(1234567): FAIL (Chrome: PASS)
[INPUT in URL status] The value is empty and required is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in NUMBER status] Value is a string that cannot be converted to a number: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in DATE status] The value attribute is empty string: FAIL (Chrome: PASS)
[INPUT in EMAIL status] The value is empty and required is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in DATETIME-LOCAL status] Invalid local date and time string(1979-10-99 99:99): FAIL (Chrome: PASS)
[textarea] The value is empty: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in WEEK status] invalid week string(2000-w01): FAIL (Chrome: PASS)
[INPUT in TIME status] The value attribute is empty string: FAIL (Chrome: PASS)
[INPUT in WEEK status] The value attribute is empty string: FAIL (Chrome: PASS)
[INPUT in TIME status] Invalid time string(12:00:60): FAIL (Chrome: PASS)
[INPUT in TEXT status] The value is empty and required is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in FILE status] The Files attribute is null: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in DATE status] Invalid date string(37-01-01): FAIL (Chrome: PASS)
[INPUT in PASSWORD status] The value is empty and required is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in DATETIME-LOCAL status] Invalid local date and time string(2001-12-21 12:00)-two white space: FAIL (Chrome: PASS)
[INPUT in MONTH status] The value attribute is a number(1234567): FAIL (Chrome: PASS)
[INPUT in TIME status] The value attribute is a time object: FAIL (Chrome: PASS)
[INPUT in DATETIME-LOCAL status] The value attribute is empty string: FAIL (Chrome: PASS)
[INPUT in WEEK status] The value attribute is a Date object: FAIL (Chrome: PASS)
[INPUT in WEEK status] The value attribute is a number(1234567): FAIL (Chrome: PASS)
[INPUT in NUMBER status] Value is Math.pow(-2, 1024): FAIL (Chrome: PASS, Safari: FAIL)
/html/semantics/forms/constraints/form-validation-validity-valid.html
[INPUT in EMAIL status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in TEXT status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in SEARCH status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in NUMBER status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS, Safari: FAIL)
[textarea] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in TEL status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in RADIO status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: FAIL, Safari: FAIL)
[INPUT in DATE status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS)
[INPUT in URL status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in FILE status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in TIME status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS)
[INPUT in PASSWORD status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in CHECKBOX status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS, Safari: FAIL)
[INPUT in MONTH status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS)
[INPUT in DATETIME-LOCAL status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS)
[INPUT in WEEK status] validity.valid must be false if validity.valueMissing is true: FAIL (Chrome: PASS)
/html/semantics/forms/constraints/form-validation-validity-rangeOverflow.html
[INPUT in NUMBER status] The value is greater than max(special floating number): FAIL (Chrome: PASS, Safari: FAIL)
Comment 6•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/fac9f5546006
https://hg.mozilla.org/mozilla-central/rev/833c016890aa
Description
•