Changeset 207380 in webkit
- Timestamp:
- Oct 15, 2016 2:31:59 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r207375 r207380 1 2016-10-15 Chris Dumez <cdumez@apple.com> 2 3 Add support for reportValidity() on form and form control elements 4 https://bugs.webkit.org/show_bug.cgi?id=163479 5 6 Reviewed by Darin Adler. 7 8 Rebaseline several W3C tests now that more checks are passing. 9 10 * web-platform-tests/html/dom/interfaces-expected.txt: 11 * web-platform-tests/html/semantics/forms/constraints/form-validation-reportValidity-expected.txt: 12 * web-platform-tests/html/semantics/forms/constraints/form-validation-validate-expected.txt: 13 1 14 2016-10-15 Chris Dumez <cdumez@apple.com> 2 15 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt
r207040 r207380 1727 1727 PASS HTMLObjectElement interface: attribute validationMessage 1728 1728 PASS HTMLObjectElement interface: operation checkValidity() 1729 FAIL HTMLObjectElement interface: operation reportValidity() assert_own_property: interface prototype object missing non-static operation expected property "reportValidity" missing 1729 PASS HTMLObjectElement interface: operation reportValidity() 1730 1730 PASS HTMLObjectElement interface: operation setCustomValidity(DOMString) 1731 1731 PASS HTMLObjectElement interface: attribute align … … 2548 2548 PASS HTMLFormElement interface: operation reset() 2549 2549 PASS HTMLFormElement interface: operation checkValidity() 2550 FAIL HTMLFormElement interface: operation reportValidity() assert_own_property: interface prototype object missing non-static operation expected property "reportValidity" missing 2550 PASS HTMLFormElement interface: operation reportValidity() 2551 2551 PASS HTMLFormElement must be primary interface of document.createElement("form") 2552 2552 PASS Stringification of document.createElement("form") … … 2565 2565 PASS HTMLFormElement interface: document.createElement("form") must inherit property "reset" with the proper type (14) 2566 2566 PASS HTMLFormElement interface: document.createElement("form") must inherit property "checkValidity" with the proper type (15) 2567 FAIL HTMLFormElement interface: document.createElement("form") must inherit property "reportValidity" with the proper type (16) assert_inherits: property "reportValidity" not found in prototype chain 2567 PASS HTMLFormElement interface: document.createElement("form") must inherit property "reportValidity" with the proper type (16) 2568 2568 PASS HTMLLabelElement interface: existence and properties of interface object 2569 2569 PASS HTMLLabelElement interface object length … … 2630 2630 PASS HTMLInputElement interface: attribute validationMessage 2631 2631 PASS HTMLInputElement interface: operation checkValidity() 2632 FAIL HTMLInputElement interface: operation reportValidity() assert_own_property: interface prototype object missing non-static operation expected property "reportValidity" missing 2632 PASS HTMLInputElement interface: operation reportValidity() 2633 2633 PASS HTMLInputElement interface: operation setCustomValidity(DOMString) 2634 2634 PASS HTMLInputElement interface: attribute labels … … 2690 2690 PASS HTMLInputElement interface: document.createElement("input") must inherit property "validationMessage" with the proper type (42) 2691 2691 PASS HTMLInputElement interface: document.createElement("input") must inherit property "checkValidity" with the proper type (43) 2692 FAIL HTMLInputElement interface: document.createElement("input") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 2692 PASS HTMLInputElement interface: document.createElement("input") must inherit property "reportValidity" with the proper type (44) 2693 2693 PASS HTMLInputElement interface: document.createElement("input") must inherit property "setCustomValidity" with the proper type (45) 2694 2694 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on document.createElement("input") with too few arguments must throw TypeError … … 2754 2754 PASS HTMLInputElement interface: createInput("text") must inherit property "validationMessage" with the proper type (42) 2755 2755 PASS HTMLInputElement interface: createInput("text") must inherit property "checkValidity" with the proper type (43) 2756 FAIL HTMLInputElement interface: createInput("text") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 2756 PASS HTMLInputElement interface: createInput("text") must inherit property "reportValidity" with the proper type (44) 2757 2757 PASS HTMLInputElement interface: createInput("text") must inherit property "setCustomValidity" with the proper type (45) 2758 2758 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("text") with too few arguments must throw TypeError … … 2818 2818 PASS HTMLInputElement interface: createInput("hidden") must inherit property "validationMessage" with the proper type (42) 2819 2819 PASS HTMLInputElement interface: createInput("hidden") must inherit property "checkValidity" with the proper type (43) 2820 FAIL HTMLInputElement interface: createInput("hidden") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 2820 PASS HTMLInputElement interface: createInput("hidden") must inherit property "reportValidity" with the proper type (44) 2821 2821 PASS HTMLInputElement interface: createInput("hidden") must inherit property "setCustomValidity" with the proper type (45) 2822 2822 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("hidden") with too few arguments must throw TypeError … … 2882 2882 PASS HTMLInputElement interface: createInput("search") must inherit property "validationMessage" with the proper type (42) 2883 2883 PASS HTMLInputElement interface: createInput("search") must inherit property "checkValidity" with the proper type (43) 2884 FAIL HTMLInputElement interface: createInput("search") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 2884 PASS HTMLInputElement interface: createInput("search") must inherit property "reportValidity" with the proper type (44) 2885 2885 PASS HTMLInputElement interface: createInput("search") must inherit property "setCustomValidity" with the proper type (45) 2886 2886 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("search") with too few arguments must throw TypeError … … 2946 2946 PASS HTMLInputElement interface: createInput("tel") must inherit property "validationMessage" with the proper type (42) 2947 2947 PASS HTMLInputElement interface: createInput("tel") must inherit property "checkValidity" with the proper type (43) 2948 FAIL HTMLInputElement interface: createInput("tel") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 2948 PASS HTMLInputElement interface: createInput("tel") must inherit property "reportValidity" with the proper type (44) 2949 2949 PASS HTMLInputElement interface: createInput("tel") must inherit property "setCustomValidity" with the proper type (45) 2950 2950 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("tel") with too few arguments must throw TypeError … … 3010 3010 PASS HTMLInputElement interface: createInput("url") must inherit property "validationMessage" with the proper type (42) 3011 3011 PASS HTMLInputElement interface: createInput("url") must inherit property "checkValidity" with the proper type (43) 3012 FAIL HTMLInputElement interface: createInput("url") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 3012 PASS HTMLInputElement interface: createInput("url") must inherit property "reportValidity" with the proper type (44) 3013 3013 PASS HTMLInputElement interface: createInput("url") must inherit property "setCustomValidity" with the proper type (45) 3014 3014 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("url") with too few arguments must throw TypeError … … 3074 3074 PASS HTMLInputElement interface: createInput("email") must inherit property "validationMessage" with the proper type (42) 3075 3075 PASS HTMLInputElement interface: createInput("email") must inherit property "checkValidity" with the proper type (43) 3076 FAIL HTMLInputElement interface: createInput("email") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 3076 PASS HTMLInputElement interface: createInput("email") must inherit property "reportValidity" with the proper type (44) 3077 3077 PASS HTMLInputElement interface: createInput("email") must inherit property "setCustomValidity" with the proper type (45) 3078 3078 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("email") with too few arguments must throw TypeError … … 3138 3138 PASS HTMLInputElement interface: createInput("password") must inherit property "validationMessage" with the proper type (42) 3139 3139 PASS HTMLInputElement interface: createInput("password") must inherit property "checkValidity" with the proper type (43) 3140 FAIL HTMLInputElement interface: createInput("password") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 3140 PASS HTMLInputElement interface: createInput("password") must inherit property "reportValidity" with the proper type (44) 3141 3141 PASS HTMLInputElement interface: createInput("password") must inherit property "setCustomValidity" with the proper type (45) 3142 3142 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("password") with too few arguments must throw TypeError … … 3202 3202 PASS HTMLInputElement interface: createInput("date") must inherit property "validationMessage" with the proper type (42) 3203 3203 PASS HTMLInputElement interface: createInput("date") must inherit property "checkValidity" with the proper type (43) 3204 FAIL HTMLInputElement interface: createInput("date") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 3204 PASS HTMLInputElement interface: createInput("date") must inherit property "reportValidity" with the proper type (44) 3205 3205 PASS HTMLInputElement interface: createInput("date") must inherit property "setCustomValidity" with the proper type (45) 3206 3206 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("date") with too few arguments must throw TypeError … … 3266 3266 PASS HTMLInputElement interface: createInput("month") must inherit property "validationMessage" with the proper type (42) 3267 3267 PASS HTMLInputElement interface: createInput("month") must inherit property "checkValidity" with the proper type (43) 3268 FAIL HTMLInputElement interface: createInput("month") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 3268 PASS HTMLInputElement interface: createInput("month") must inherit property "reportValidity" with the proper type (44) 3269 3269 PASS HTMLInputElement interface: createInput("month") must inherit property "setCustomValidity" with the proper type (45) 3270 3270 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("month") with too few arguments must throw TypeError … … 3330 3330 PASS HTMLInputElement interface: createInput("week") must inherit property "validationMessage" with the proper type (42) 3331 3331 PASS HTMLInputElement interface: createInput("week") must inherit property "checkValidity" with the proper type (43) 3332 FAIL HTMLInputElement interface: createInput("week") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 3332 PASS HTMLInputElement interface: createInput("week") must inherit property "reportValidity" with the proper type (44) 3333 3333 PASS HTMLInputElement interface: createInput("week") must inherit property "setCustomValidity" with the proper type (45) 3334 3334 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("week") with too few arguments must throw TypeError … … 3394 3394 PASS HTMLInputElement interface: createInput("time") must inherit property "validationMessage" with the proper type (42) 3395 3395 PASS HTMLInputElement interface: createInput("time") must inherit property "checkValidity" with the proper type (43) 3396 FAIL HTMLInputElement interface: createInput("time") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 3396 PASS HTMLInputElement interface: createInput("time") must inherit property "reportValidity" with the proper type (44) 3397 3397 PASS HTMLInputElement interface: createInput("time") must inherit property "setCustomValidity" with the proper type (45) 3398 3398 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("time") with too few arguments must throw TypeError … … 3458 3458 PASS HTMLInputElement interface: createInput("datetime-local") must inherit property "validationMessage" with the proper type (42) 3459 3459 PASS HTMLInputElement interface: createInput("datetime-local") must inherit property "checkValidity" with the proper type (43) 3460 FAIL HTMLInputElement interface: createInput("datetime-local") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 3460 PASS HTMLInputElement interface: createInput("datetime-local") must inherit property "reportValidity" with the proper type (44) 3461 3461 PASS HTMLInputElement interface: createInput("datetime-local") must inherit property "setCustomValidity" with the proper type (45) 3462 3462 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("datetime-local") with too few arguments must throw TypeError … … 3522 3522 PASS HTMLInputElement interface: createInput("number") must inherit property "validationMessage" with the proper type (42) 3523 3523 PASS HTMLInputElement interface: createInput("number") must inherit property "checkValidity" with the proper type (43) 3524 FAIL HTMLInputElement interface: createInput("number") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 3524 PASS HTMLInputElement interface: createInput("number") must inherit property "reportValidity" with the proper type (44) 3525 3525 PASS HTMLInputElement interface: createInput("number") must inherit property "setCustomValidity" with the proper type (45) 3526 3526 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("number") with too few arguments must throw TypeError … … 3586 3586 PASS HTMLInputElement interface: createInput("range") must inherit property "validationMessage" with the proper type (42) 3587 3587 PASS HTMLInputElement interface: createInput("range") must inherit property "checkValidity" with the proper type (43) 3588 FAIL HTMLInputElement interface: createInput("range") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 3588 PASS HTMLInputElement interface: createInput("range") must inherit property "reportValidity" with the proper type (44) 3589 3589 PASS HTMLInputElement interface: createInput("range") must inherit property "setCustomValidity" with the proper type (45) 3590 3590 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("range") with too few arguments must throw TypeError … … 3650 3650 PASS HTMLInputElement interface: createInput("color") must inherit property "validationMessage" with the proper type (42) 3651 3651 PASS HTMLInputElement interface: createInput("color") must inherit property "checkValidity" with the proper type (43) 3652 FAIL HTMLInputElement interface: createInput("color") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 3652 PASS HTMLInputElement interface: createInput("color") must inherit property "reportValidity" with the proper type (44) 3653 3653 PASS HTMLInputElement interface: createInput("color") must inherit property "setCustomValidity" with the proper type (45) 3654 3654 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("color") with too few arguments must throw TypeError … … 3714 3714 PASS HTMLInputElement interface: createInput("checkbox") must inherit property "validationMessage" with the proper type (42) 3715 3715 PASS HTMLInputElement interface: createInput("checkbox") must inherit property "checkValidity" with the proper type (43) 3716 FAIL HTMLInputElement interface: createInput("checkbox") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 3716 PASS HTMLInputElement interface: createInput("checkbox") must inherit property "reportValidity" with the proper type (44) 3717 3717 PASS HTMLInputElement interface: createInput("checkbox") must inherit property "setCustomValidity" with the proper type (45) 3718 3718 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("checkbox") with too few arguments must throw TypeError … … 3778 3778 PASS HTMLInputElement interface: createInput("radio") must inherit property "validationMessage" with the proper type (42) 3779 3779 PASS HTMLInputElement interface: createInput("radio") must inherit property "checkValidity" with the proper type (43) 3780 FAIL HTMLInputElement interface: createInput("radio") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 3780 PASS HTMLInputElement interface: createInput("radio") must inherit property "reportValidity" with the proper type (44) 3781 3781 PASS HTMLInputElement interface: createInput("radio") must inherit property "setCustomValidity" with the proper type (45) 3782 3782 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("radio") with too few arguments must throw TypeError … … 3842 3842 PASS HTMLInputElement interface: createInput("file") must inherit property "validationMessage" with the proper type (42) 3843 3843 PASS HTMLInputElement interface: createInput("file") must inherit property "checkValidity" with the proper type (43) 3844 FAIL HTMLInputElement interface: createInput("file") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 3844 PASS HTMLInputElement interface: createInput("file") must inherit property "reportValidity" with the proper type (44) 3845 3845 PASS HTMLInputElement interface: createInput("file") must inherit property "setCustomValidity" with the proper type (45) 3846 3846 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("file") with too few arguments must throw TypeError … … 3906 3906 PASS HTMLInputElement interface: createInput("submit") must inherit property "validationMessage" with the proper type (42) 3907 3907 PASS HTMLInputElement interface: createInput("submit") must inherit property "checkValidity" with the proper type (43) 3908 FAIL HTMLInputElement interface: createInput("submit") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 3908 PASS HTMLInputElement interface: createInput("submit") must inherit property "reportValidity" with the proper type (44) 3909 3909 PASS HTMLInputElement interface: createInput("submit") must inherit property "setCustomValidity" with the proper type (45) 3910 3910 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("submit") with too few arguments must throw TypeError … … 3970 3970 PASS HTMLInputElement interface: createInput("image") must inherit property "validationMessage" with the proper type (42) 3971 3971 PASS HTMLInputElement interface: createInput("image") must inherit property "checkValidity" with the proper type (43) 3972 FAIL HTMLInputElement interface: createInput("image") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 3972 PASS HTMLInputElement interface: createInput("image") must inherit property "reportValidity" with the proper type (44) 3973 3973 PASS HTMLInputElement interface: createInput("image") must inherit property "setCustomValidity" with the proper type (45) 3974 3974 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("image") with too few arguments must throw TypeError … … 4034 4034 PASS HTMLInputElement interface: createInput("reset") must inherit property "validationMessage" with the proper type (42) 4035 4035 PASS HTMLInputElement interface: createInput("reset") must inherit property "checkValidity" with the proper type (43) 4036 FAIL HTMLInputElement interface: createInput("reset") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 4036 PASS HTMLInputElement interface: createInput("reset") must inherit property "reportValidity" with the proper type (44) 4037 4037 PASS HTMLInputElement interface: createInput("reset") must inherit property "setCustomValidity" with the proper type (45) 4038 4038 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("reset") with too few arguments must throw TypeError … … 4098 4098 PASS HTMLInputElement interface: createInput("button") must inherit property "validationMessage" with the proper type (42) 4099 4099 PASS HTMLInputElement interface: createInput("button") must inherit property "checkValidity" with the proper type (43) 4100 FAIL HTMLInputElement interface: createInput("button") must inherit property "reportValidity" with the proper type (44) assert_inherits: property "reportValidity" not found in prototype chain 4100 PASS HTMLInputElement interface: createInput("button") must inherit property "reportValidity" with the proper type (44) 4101 4101 PASS HTMLInputElement interface: createInput("button") must inherit property "setCustomValidity" with the proper type (45) 4102 4102 PASS HTMLInputElement interface: calling setCustomValidity(DOMString) on createInput("button") with too few arguments must throw TypeError … … 4135 4135 PASS HTMLButtonElement interface: attribute validationMessage 4136 4136 PASS HTMLButtonElement interface: operation checkValidity() 4137 FAIL HTMLButtonElement interface: operation reportValidity() assert_own_property: interface prototype object missing non-static operation expected property "reportValidity" missing 4137 PASS HTMLButtonElement interface: operation reportValidity() 4138 4138 PASS HTMLButtonElement interface: operation setCustomValidity(DOMString) 4139 4139 PASS HTMLButtonElement interface: attribute labels … … 4156 4156 PASS HTMLButtonElement interface: document.createElement("button") must inherit property "validationMessage" with the proper type (14) 4157 4157 PASS HTMLButtonElement interface: document.createElement("button") must inherit property "checkValidity" with the proper type (15) 4158 FAIL HTMLButtonElement interface: document.createElement("button") must inherit property "reportValidity" with the proper type (16) assert_inherits: property "reportValidity" not found in prototype chain 4158 PASS HTMLButtonElement interface: document.createElement("button") must inherit property "reportValidity" with the proper type (16) 4159 4159 PASS HTMLButtonElement interface: document.createElement("button") must inherit property "setCustomValidity" with the proper type (17) 4160 4160 PASS HTMLButtonElement interface: calling setCustomValidity(DOMString) on document.createElement("button") with too few arguments must throw TypeError … … 4188 4188 PASS HTMLSelectElement interface: attribute validationMessage 4189 4189 PASS HTMLSelectElement interface: operation checkValidity() 4190 FAIL HTMLSelectElement interface: operation reportValidity() assert_own_property: interface prototype object missing non-static operation expected property "reportValidity" missing 4190 PASS HTMLSelectElement interface: operation reportValidity() 4191 4191 PASS HTMLSelectElement interface: operation setCustomValidity(DOMString) 4192 4192 PASS HTMLSelectElement interface: attribute labels … … 4220 4220 PASS HTMLSelectElement interface: document.createElement("select") must inherit property "validationMessage" with the proper type (22) 4221 4221 PASS HTMLSelectElement interface: document.createElement("select") must inherit property "checkValidity" with the proper type (23) 4222 FAIL HTMLSelectElement interface: document.createElement("select") must inherit property "reportValidity" with the proper type (24) assert_inherits: property "reportValidity" not found in prototype chain 4222 PASS HTMLSelectElement interface: document.createElement("select") must inherit property "reportValidity" with the proper type (24) 4223 4223 PASS HTMLSelectElement interface: document.createElement("select") must inherit property "setCustomValidity" with the proper type (25) 4224 4224 PASS HTMLSelectElement interface: calling setCustomValidity(DOMString) on document.createElement("select") with too few arguments must throw TypeError … … 4305 4305 PASS HTMLTextAreaElement interface: attribute validationMessage 4306 4306 PASS HTMLTextAreaElement interface: operation checkValidity() 4307 FAIL HTMLTextAreaElement interface: operation reportValidity() assert_own_property: interface prototype object missing non-static operation expected property "reportValidity" missing 4307 PASS HTMLTextAreaElement interface: operation reportValidity() 4308 4308 PASS HTMLTextAreaElement interface: operation setCustomValidity(DOMString) 4309 4309 PASS HTMLTextAreaElement interface: attribute labels … … 4340 4340 PASS HTMLTextAreaElement interface: document.createElement("textarea") must inherit property "validationMessage" with the proper type (21) 4341 4341 PASS HTMLTextAreaElement interface: document.createElement("textarea") must inherit property "checkValidity" with the proper type (22) 4342 FAIL HTMLTextAreaElement interface: document.createElement("textarea") must inherit property "reportValidity" with the proper type (23) assert_inherits: property "reportValidity" not found in prototype chain 4342 PASS HTMLTextAreaElement interface: document.createElement("textarea") must inherit property "reportValidity" with the proper type (23) 4343 4343 PASS HTMLTextAreaElement interface: document.createElement("textarea") must inherit property "setCustomValidity" with the proper type (24) 4344 4344 PASS HTMLTextAreaElement interface: calling setCustomValidity(DOMString) on document.createElement("textarea") with too few arguments must throw TypeError … … 4372 4372 PASS HTMLKeygenElement interface: attribute validationMessage 4373 4373 PASS HTMLKeygenElement interface: operation checkValidity() 4374 FAIL HTMLKeygenElement interface: operation reportValidity() assert_own_property: interface prototype object missing non-static operation expected property "reportValidity" missing 4374 PASS HTMLKeygenElement interface: operation reportValidity() 4375 4375 PASS HTMLKeygenElement interface: operation setCustomValidity(DOMString) 4376 4376 PASS HTMLKeygenElement interface: attribute labels … … 4388 4388 PASS HTMLKeygenElement interface: document.createElement("keygen") must inherit property "validationMessage" with the proper type (9) 4389 4389 PASS HTMLKeygenElement interface: document.createElement("keygen") must inherit property "checkValidity" with the proper type (10) 4390 FAIL HTMLKeygenElement interface: document.createElement("keygen") must inherit property "reportValidity" with the proper type (11) assert_inherits: property "reportValidity" not found in prototype chain 4390 PASS HTMLKeygenElement interface: document.createElement("keygen") must inherit property "reportValidity" with the proper type (11) 4391 4391 PASS HTMLKeygenElement interface: document.createElement("keygen") must inherit property "setCustomValidity" with the proper type (12) 4392 4392 PASS HTMLKeygenElement interface: calling setCustomValidity(DOMString) on document.createElement("keygen") with too few arguments must throw TypeError … … 4407 4407 PASS HTMLOutputElement interface: attribute validationMessage 4408 4408 PASS HTMLOutputElement interface: operation checkValidity() 4409 FAIL HTMLOutputElement interface: operation reportValidity() assert_own_property: interface prototype object missing non-static operation expected property "reportValidity" missing 4409 PASS HTMLOutputElement interface: operation reportValidity() 4410 4410 PASS HTMLOutputElement interface: operation setCustomValidity(DOMString) 4411 4411 PASS HTMLOutputElement interface: attribute labels … … 4422 4422 PASS HTMLOutputElement interface: document.createElement("output") must inherit property "validationMessage" with the proper type (8) 4423 4423 PASS HTMLOutputElement interface: document.createElement("output") must inherit property "checkValidity" with the proper type (9) 4424 FAIL HTMLOutputElement interface: document.createElement("output") must inherit property "reportValidity" with the proper type (10) assert_inherits: property "reportValidity" not found in prototype chain 4424 PASS HTMLOutputElement interface: document.createElement("output") must inherit property "reportValidity" with the proper type (10) 4425 4425 PASS HTMLOutputElement interface: document.createElement("output") must inherit property "setCustomValidity" with the proper type (11) 4426 4426 PASS HTMLOutputElement interface: calling setCustomValidity(DOMString) on document.createElement("output") with too few arguments must throw TypeError … … 4476 4476 PASS HTMLFieldSetElement interface: attribute validationMessage 4477 4477 PASS HTMLFieldSetElement interface: operation checkValidity() 4478 FAIL HTMLFieldSetElement interface: operation reportValidity() assert_own_property: interface prototype object missing non-static operation expected property "reportValidity" missing 4478 PASS HTMLFieldSetElement interface: operation reportValidity() 4479 4479 PASS HTMLFieldSetElement interface: operation setCustomValidity(DOMString) 4480 4480 PASS HTMLLegendElement interface: existence and properties of interface object -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/constraints/form-validation-reportValidity-expected.txt
r206999 r207380 1 1 2 FAIL [INPUT in TEXT status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 3 FAIL [INPUT in TEXT status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 4 FAIL [INPUT in TEXT status] not suffering from being too long assert_true: The reportValidity method doesn't exist. expected true got false 5 FAIL [INPUT in TEXT status] not suffering from being too long (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 6 FAIL [INPUT in TEXT status] suffering from a pattern mismatch assert_true: The reportValidity method doesn't exist. expected true got false 7 FAIL [INPUT in TEXT status] suffering from a pattern mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 8 FAIL [INPUT in TEXT status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 9 FAIL [INPUT in TEXT status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 10 FAIL [INPUT in SEARCH status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 11 FAIL [INPUT in SEARCH status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 12 FAIL [INPUT in SEARCH status] not suffering from being too long assert_true: The reportValidity method doesn't exist. expected true got false 13 FAIL [INPUT in SEARCH status] not suffering from being too long (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 14 FAIL [INPUT in SEARCH status] suffering from a pattern mismatch assert_true: The reportValidity method doesn't exist. expected true got false 15 FAIL [INPUT in SEARCH status] suffering from a pattern mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 16 FAIL [INPUT in SEARCH status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 17 FAIL [INPUT in SEARCH status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 18 FAIL [INPUT in TEL status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 19 FAIL [INPUT in TEL status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 20 FAIL [INPUT in TEL status] not suffering from being too long assert_true: The reportValidity method doesn't exist. expected true got false 21 FAIL [INPUT in TEL status] not suffering from being too long (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 22 FAIL [INPUT in TEL status] suffering from a pattern mismatch assert_true: The reportValidity method doesn't exist. expected true got false 23 FAIL [INPUT in TEL status] suffering from a pattern mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 24 FAIL [INPUT in TEL status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 25 FAIL [INPUT in TEL status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 26 FAIL [INPUT in PASSWORD status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 27 FAIL [INPUT in PASSWORD status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 28 FAIL [INPUT in PASSWORD status] not suffering from being too long assert_true: The reportValidity method doesn't exist. expected true got false 29 FAIL [INPUT in PASSWORD status] not suffering from being too long (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 30 FAIL [INPUT in PASSWORD status] suffering from a pattern mismatch assert_true: The reportValidity method doesn't exist. expected true got false 31 FAIL [INPUT in PASSWORD status] suffering from a pattern mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 32 FAIL [INPUT in PASSWORD status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 33 FAIL [INPUT in PASSWORD status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 34 FAIL [INPUT in URL status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 35 FAIL [INPUT in URL status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 36 FAIL [INPUT in URL status] not suffering from being too long assert_true: The reportValidity method doesn't exist. expected true got false 37 FAIL [INPUT in URL status] not suffering from being too long (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 38 FAIL [INPUT in URL status] suffering from a pattern mismatch assert_true: The reportValidity method doesn't exist. expected true got false 39 FAIL [INPUT in URL status] suffering from a pattern mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 40 FAIL [INPUT in URL status] suffering from a type mismatch assert_true: The reportValidity method doesn't exist. expected true got false 41 FAIL [INPUT in URL status] suffering from a type mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 42 FAIL [INPUT in URL status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 43 FAIL [INPUT in URL status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 44 FAIL [INPUT in EMAIL status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 45 FAIL [INPUT in EMAIL status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 46 FAIL [INPUT in EMAIL status] not suffering from being too long assert_true: The reportValidity method doesn't exist. expected true got false 47 FAIL [INPUT in EMAIL status] not suffering from being too long (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 48 FAIL [INPUT in EMAIL status] suffering from a pattern mismatch assert_true: The reportValidity method doesn't exist. expected true got false 49 FAIL [INPUT in EMAIL status] suffering from a pattern mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 50 FAIL [INPUT in EMAIL status] suffering from a type mismatch assert_true: The reportValidity method doesn't exist. expected true got false 51 FAIL [INPUT in EMAIL status] suffering from a type mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 52 FAIL [INPUT in EMAIL status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 53 FAIL [INPUT in EMAIL status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 2 PASS [INPUT in TEXT status] no constraint 3 PASS [INPUT in TEXT status] no constraint (in a form) 4 PASS [INPUT in TEXT status] not suffering from being too long 5 PASS [INPUT in TEXT status] not suffering from being too long (in a form) 6 PASS [INPUT in TEXT status] suffering from a pattern mismatch 7 PASS [INPUT in TEXT status] suffering from a pattern mismatch (in a form) 8 PASS [INPUT in TEXT status] suffering from being missing 9 PASS [INPUT in TEXT status] suffering from being missing (in a form) 10 PASS [INPUT in SEARCH status] no constraint 11 PASS [INPUT in SEARCH status] no constraint (in a form) 12 PASS [INPUT in SEARCH status] not suffering from being too long 13 PASS [INPUT in SEARCH status] not suffering from being too long (in a form) 14 PASS [INPUT in SEARCH status] suffering from a pattern mismatch 15 PASS [INPUT in SEARCH status] suffering from a pattern mismatch (in a form) 16 PASS [INPUT in SEARCH status] suffering from being missing 17 PASS [INPUT in SEARCH status] suffering from being missing (in a form) 18 PASS [INPUT in TEL status] no constraint 19 PASS [INPUT in TEL status] no constraint (in a form) 20 PASS [INPUT in TEL status] not suffering from being too long 21 PASS [INPUT in TEL status] not suffering from being too long (in a form) 22 PASS [INPUT in TEL status] suffering from a pattern mismatch 23 PASS [INPUT in TEL status] suffering from a pattern mismatch (in a form) 24 PASS [INPUT in TEL status] suffering from being missing 25 PASS [INPUT in TEL status] suffering from being missing (in a form) 26 PASS [INPUT in PASSWORD status] no constraint 27 PASS [INPUT in PASSWORD status] no constraint (in a form) 28 PASS [INPUT in PASSWORD status] not suffering from being too long 29 PASS [INPUT in PASSWORD status] not suffering from being too long (in a form) 30 PASS [INPUT in PASSWORD status] suffering from a pattern mismatch 31 PASS [INPUT in PASSWORD status] suffering from a pattern mismatch (in a form) 32 PASS [INPUT in PASSWORD status] suffering from being missing 33 PASS [INPUT in PASSWORD status] suffering from being missing (in a form) 34 PASS [INPUT in URL status] no constraint 35 PASS [INPUT in URL status] no constraint (in a form) 36 PASS [INPUT in URL status] not suffering from being too long 37 PASS [INPUT in URL status] not suffering from being too long (in a form) 38 PASS [INPUT in URL status] suffering from a pattern mismatch 39 PASS [INPUT in URL status] suffering from a pattern mismatch (in a form) 40 PASS [INPUT in URL status] suffering from a type mismatch 41 PASS [INPUT in URL status] suffering from a type mismatch (in a form) 42 PASS [INPUT in URL status] suffering from being missing 43 PASS [INPUT in URL status] suffering from being missing (in a form) 44 PASS [INPUT in EMAIL status] no constraint 45 PASS [INPUT in EMAIL status] no constraint (in a form) 46 PASS [INPUT in EMAIL status] not suffering from being too long 47 PASS [INPUT in EMAIL status] not suffering from being too long (in a form) 48 PASS [INPUT in EMAIL status] suffering from a pattern mismatch 49 PASS [INPUT in EMAIL status] suffering from a pattern mismatch (in a form) 50 PASS [INPUT in EMAIL status] suffering from a type mismatch 51 PASS [INPUT in EMAIL status] suffering from a type mismatch (in a form) 52 PASS [INPUT in EMAIL status] suffering from being missing 53 PASS [INPUT in EMAIL status] suffering from being missing (in a form) 54 54 FAIL [INPUT in DATETIME-LOCAL status] The datetime-local type must be supported. assert_equals: The datetime-local type should be supported. expected "datetime-local" but got "text" 55 55 FAIL [INPUT in DATE status] The date type must be supported. assert_equals: The date type should be supported. expected "date" but got "text" … … 57 57 FAIL [INPUT in WEEK status] The week type must be supported. assert_equals: The week type should be supported. expected "week" but got "text" 58 58 FAIL [INPUT in TIME status] The time type must be supported. assert_equals: The time type should be supported. expected "time" but got "text" 59 FAIL [INPUT in NUMBER status] suffering from an overflow assert_true: The reportValidity method doesn't exist. expected true got false 60 FAIL [INPUT in NUMBER status] suffering from an overflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 61 FAIL [INPUT in NUMBER status] suffering from an underflow assert_true: The reportValidity method doesn't exist. expected true got false 62 FAIL [INPUT in NUMBER status] suffering from an underflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 63 FAIL [INPUT in NUMBER status] suffering from a step mismatch assert_true: The reportValidity method doesn't exist. expected true got false 64 FAIL [INPUT in NUMBER status] suffering from a step mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 65 FAIL [INPUT in NUMBER status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 66 FAIL [INPUT in NUMBER status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 67 FAIL [INPUT in CHECKBOX status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 68 FAIL [INPUT in CHECKBOX status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 69 FAIL [INPUT in CHECKBOX status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 70 FAIL [INPUT in CHECKBOX status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 71 FAIL [INPUT in RADIO status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 72 FAIL [INPUT in RADIO status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 73 FAIL [INPUT in RADIO status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 74 FAIL [INPUT in RADIO status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 75 FAIL [INPUT in FILE status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 76 FAIL [INPUT in FILE status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 77 FAIL [INPUT in FILE status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 78 FAIL [INPUT in FILE status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 79 FAIL [select] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 80 FAIL [select] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 81 FAIL [select] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 82 FAIL [select] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 83 FAIL [textarea] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 84 FAIL [textarea] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 85 FAIL [textarea] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 86 FAIL [textarea] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 59 PASS [INPUT in NUMBER status] suffering from an overflow 60 PASS [INPUT in NUMBER status] suffering from an overflow (in a form) 61 PASS [INPUT in NUMBER status] suffering from an underflow 62 PASS [INPUT in NUMBER status] suffering from an underflow (in a form) 63 PASS [INPUT in NUMBER status] suffering from a step mismatch 64 PASS [INPUT in NUMBER status] suffering from a step mismatch (in a form) 65 PASS [INPUT in NUMBER status] suffering from being missing 66 PASS [INPUT in NUMBER status] suffering from being missing (in a form) 67 PASS [INPUT in CHECKBOX status] no constraint 68 PASS [INPUT in CHECKBOX status] no constraint (in a form) 69 PASS [INPUT in CHECKBOX status] suffering from being missing 70 PASS [INPUT in CHECKBOX status] suffering from being missing (in a form) 71 PASS [INPUT in RADIO status] no constraint 72 PASS [INPUT in RADIO status] no constraint (in a form) 73 PASS [INPUT in RADIO status] suffering from being missing 74 PASS [INPUT in RADIO status] suffering from being missing (in a form) 75 PASS [INPUT in FILE status] no constraint 76 PASS [INPUT in FILE status] no constraint (in a form) 77 PASS [INPUT in FILE status] suffering from being missing 78 PASS [INPUT in FILE status] suffering from being missing (in a form) 79 PASS [select] no constraint 80 PASS [select] no constraint (in a form) 81 PASS [select] suffering from being missing 82 PASS [select] suffering from being missing (in a form) 83 PASS [textarea] no constraint 84 PASS [textarea] no constraint (in a form) 85 PASS [textarea] suffering from being missing 86 PASS [textarea] suffering from being missing (in a form) 87 87 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/constraints/form-validation-validate-expected.txt
r189476 r207380 1 CONSOLE MESSAGE: line 79: An invalid form control with name='' is not focusable. 2 CONSOLE MESSAGE: line 79: An invalid form control with name='' is not focusable. 3 CONSOLE MESSAGE: line 108: An invalid form control with name='' is not focusable. 4 CONSOLE MESSAGE: line 114: An invalid form control with name='' is not focusable. 1 5 2 6 PASS If there is any invalid submittable element whose form owner is the form, the form.checkValidity must be false 3 FAIL If there is any invalid submittable element whose form owner is the form, the form.reportValidity must be false assert_true: The reportValidity method is not supported expected true got false 7 PASS If there is any invalid submittable element whose form owner is the form, the form.reportValidity must be false 4 8 PASS If all of the submittable elements whose form owner is the form are valid, the form.checkValidity must be true 5 FAIL If all of the submittable elements whose form owner is the form are valid, the form.reportValidity must be true assert_true: The reportValidity method is not supported. expected true got false 9 PASS If all of the submittable elements whose form owner is the form are valid, the form.reportValidity must be true 6 10 PASS Check the checkValidity method of the form element when it has a fieldset child 7 FAIL Check the reportValidity method of the form element when it has a fieldset child assert_true: The reportValidity method is not supported. expected true got false 8 FAIL The invalid event must be fired at the invalid controls assert_equals: The invalid event will be fired if the checkValidity or reportValidity method are called. expected 4 but got 2 11 PASS Check the reportValidity method of the form element when it has a fieldset child 12 PASS The invalid event must be fired at the invalid controls 9 13 PASS The invalid event must not be fired at the invalid controls 10 14 -
trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/html/semantics/forms/constraints/form-validation-reportValidity-expected.txt
r206999 r207380 1 1 2 FAIL [INPUT in TEXT status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 3 FAIL [INPUT in TEXT status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 4 FAIL [INPUT in TEXT status] not suffering from being too long assert_true: The reportValidity method doesn't exist. expected true got false 5 FAIL [INPUT in TEXT status] not suffering from being too long (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 6 FAIL [INPUT in TEXT status] suffering from a pattern mismatch assert_true: The reportValidity method doesn't exist. expected true got false 7 FAIL [INPUT in TEXT status] suffering from a pattern mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 8 FAIL [INPUT in TEXT status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 9 FAIL [INPUT in TEXT status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 10 FAIL [INPUT in SEARCH status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 11 FAIL [INPUT in SEARCH status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 12 FAIL [INPUT in SEARCH status] not suffering from being too long assert_true: The reportValidity method doesn't exist. expected true got false 13 FAIL [INPUT in SEARCH status] not suffering from being too long (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 14 FAIL [INPUT in SEARCH status] suffering from a pattern mismatch assert_true: The reportValidity method doesn't exist. expected true got false 15 FAIL [INPUT in SEARCH status] suffering from a pattern mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 16 FAIL [INPUT in SEARCH status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 17 FAIL [INPUT in SEARCH status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 18 FAIL [INPUT in TEL status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 19 FAIL [INPUT in TEL status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 20 FAIL [INPUT in TEL status] not suffering from being too long assert_true: The reportValidity method doesn't exist. expected true got false 21 FAIL [INPUT in TEL status] not suffering from being too long (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 22 FAIL [INPUT in TEL status] suffering from a pattern mismatch assert_true: The reportValidity method doesn't exist. expected true got false 23 FAIL [INPUT in TEL status] suffering from a pattern mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 24 FAIL [INPUT in TEL status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 25 FAIL [INPUT in TEL status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 26 FAIL [INPUT in PASSWORD status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 27 FAIL [INPUT in PASSWORD status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 28 FAIL [INPUT in PASSWORD status] not suffering from being too long assert_true: The reportValidity method doesn't exist. expected true got false 29 FAIL [INPUT in PASSWORD status] not suffering from being too long (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 30 FAIL [INPUT in PASSWORD status] suffering from a pattern mismatch assert_true: The reportValidity method doesn't exist. expected true got false 31 FAIL [INPUT in PASSWORD status] suffering from a pattern mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 32 FAIL [INPUT in PASSWORD status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 33 FAIL [INPUT in PASSWORD status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 34 FAIL [INPUT in URL status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 35 FAIL [INPUT in URL status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 36 FAIL [INPUT in URL status] not suffering from being too long assert_true: The reportValidity method doesn't exist. expected true got false 37 FAIL [INPUT in URL status] not suffering from being too long (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 38 FAIL [INPUT in URL status] suffering from a pattern mismatch assert_true: The reportValidity method doesn't exist. expected true got false 39 FAIL [INPUT in URL status] suffering from a pattern mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 40 FAIL [INPUT in URL status] suffering from a type mismatch assert_true: The reportValidity method doesn't exist. expected true got false 41 FAIL [INPUT in URL status] suffering from a type mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 42 FAIL [INPUT in URL status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 43 FAIL [INPUT in URL status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 44 FAIL [INPUT in EMAIL status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 45 FAIL [INPUT in EMAIL status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 46 FAIL [INPUT in EMAIL status] not suffering from being too long assert_true: The reportValidity method doesn't exist. expected true got false 47 FAIL [INPUT in EMAIL status] not suffering from being too long (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 48 FAIL [INPUT in EMAIL status] suffering from a pattern mismatch assert_true: The reportValidity method doesn't exist. expected true got false 49 FAIL [INPUT in EMAIL status] suffering from a pattern mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 50 FAIL [INPUT in EMAIL status] suffering from a type mismatch assert_true: The reportValidity method doesn't exist. expected true got false 51 FAIL [INPUT in EMAIL status] suffering from a type mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 52 FAIL [INPUT in EMAIL status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 53 FAIL [INPUT in EMAIL status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 54 FAIL [INPUT in DATETIME-LOCAL status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 55 FAIL [INPUT in DATETIME-LOCAL status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 56 FAIL [INPUT in DATETIME-LOCAL status] suffering from an overflow assert_true: The reportValidity method doesn't exist. expected true got false 57 FAIL [INPUT in DATETIME-LOCAL status] suffering from an overflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 58 FAIL [INPUT in DATETIME-LOCAL status] suffering from an underflow assert_true: The reportValidity method doesn't exist. expected true got false 59 FAIL [INPUT in DATETIME-LOCAL status] suffering from an underflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 60 FAIL [INPUT in DATETIME-LOCAL status] suffering from a step mismatch assert_true: The reportValidity method doesn't exist. expected true got false 61 FAIL [INPUT in DATETIME-LOCAL status] suffering from a step mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 62 FAIL [INPUT in DATETIME-LOCAL status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 63 FAIL [INPUT in DATETIME-LOCAL status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 64 FAIL [INPUT in DATE status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 65 FAIL [INPUT in DATE status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 66 FAIL [INPUT in DATE status] suffering from an overflow assert_true: The reportValidity method doesn't exist. expected true got false 67 FAIL [INPUT in DATE status] suffering from an overflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 68 FAIL [INPUT in DATE status] suffering from an underflow assert_true: The reportValidity method doesn't exist. expected true got false 69 FAIL [INPUT in DATE status] suffering from an underflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 70 FAIL [INPUT in DATE status] suffering from a step mismatch assert_true: The reportValidity method doesn't exist. expected true got false 71 FAIL [INPUT in DATE status] suffering from a step mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 72 FAIL [INPUT in DATE status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 73 FAIL [INPUT in DATE status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 74 FAIL [INPUT in MONTH status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 75 FAIL [INPUT in MONTH status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 76 FAIL [INPUT in MONTH status] suffering from an overflow assert_true: The reportValidity method doesn't exist. expected true got false 77 FAIL [INPUT in MONTH status] suffering from an overflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 78 FAIL [INPUT in MONTH status] suffering from an underflow assert_true: The reportValidity method doesn't exist. expected true got false 79 FAIL [INPUT in MONTH status] suffering from an underflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 80 FAIL [INPUT in MONTH status] suffering from a step mismatch assert_true: The reportValidity method doesn't exist. expected true got false 81 FAIL [INPUT in MONTH status] suffering from a step mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 82 FAIL [INPUT in MONTH status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 83 FAIL [INPUT in MONTH status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 84 FAIL [INPUT in WEEK status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 85 FAIL [INPUT in WEEK status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 86 FAIL [INPUT in WEEK status] suffering from an overflow assert_true: The reportValidity method doesn't exist. expected true got false 87 FAIL [INPUT in WEEK status] suffering from an overflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 88 FAIL [INPUT in WEEK status] suffering from an underflow assert_true: The reportValidity method doesn't exist. expected true got false 89 FAIL [INPUT in WEEK status] suffering from an underflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 90 FAIL [INPUT in WEEK status] suffering from a step mismatch assert_true: The reportValidity method doesn't exist. expected true got false 91 FAIL [INPUT in WEEK status] suffering from a step mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 92 FAIL [INPUT in WEEK status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 93 FAIL [INPUT in WEEK status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 94 FAIL [INPUT in TIME status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 95 FAIL [INPUT in TIME status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 96 FAIL [INPUT in TIME status] suffering from an overflow assert_true: The reportValidity method doesn't exist. expected true got false 97 FAIL [INPUT in TIME status] suffering from an overflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 98 FAIL [INPUT in TIME status] suffering from an underflow assert_true: The reportValidity method doesn't exist. expected true got false 99 FAIL [INPUT in TIME status] suffering from an underflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 100 FAIL [INPUT in TIME status] suffering from a step mismatch assert_true: The reportValidity method doesn't exist. expected true got false 101 FAIL [INPUT in TIME status] suffering from a step mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 102 FAIL [INPUT in TIME status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 103 FAIL [INPUT in TIME status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 104 FAIL [INPUT in NUMBER status] suffering from an overflow assert_true: The reportValidity method doesn't exist. expected true got false 105 FAIL [INPUT in NUMBER status] suffering from an overflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 106 FAIL [INPUT in NUMBER status] suffering from an underflow assert_true: The reportValidity method doesn't exist. expected true got false 107 FAIL [INPUT in NUMBER status] suffering from an underflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 108 FAIL [INPUT in NUMBER status] suffering from a step mismatch assert_true: The reportValidity method doesn't exist. expected true got false 109 FAIL [INPUT in NUMBER status] suffering from a step mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 110 FAIL [INPUT in NUMBER status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 111 FAIL [INPUT in NUMBER status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 112 FAIL [INPUT in CHECKBOX status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 113 FAIL [INPUT in CHECKBOX status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 114 FAIL [INPUT in CHECKBOX status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 115 FAIL [INPUT in CHECKBOX status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 116 FAIL [INPUT in RADIO status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 117 FAIL [INPUT in RADIO status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 118 FAIL [INPUT in RADIO status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 119 FAIL [INPUT in RADIO status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 120 FAIL [INPUT in FILE status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 121 FAIL [INPUT in FILE status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 122 FAIL [INPUT in FILE status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 123 FAIL [INPUT in FILE status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 124 FAIL [select] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 125 FAIL [select] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 126 FAIL [select] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 127 FAIL [select] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 128 FAIL [textarea] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 129 FAIL [textarea] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 130 FAIL [textarea] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 131 FAIL [textarea] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 2 PASS [INPUT in TEXT status] no constraint 3 PASS [INPUT in TEXT status] no constraint (in a form) 4 PASS [INPUT in TEXT status] not suffering from being too long 5 PASS [INPUT in TEXT status] not suffering from being too long (in a form) 6 PASS [INPUT in TEXT status] suffering from a pattern mismatch 7 PASS [INPUT in TEXT status] suffering from a pattern mismatch (in a form) 8 PASS [INPUT in TEXT status] suffering from being missing 9 PASS [INPUT in TEXT status] suffering from being missing (in a form) 10 PASS [INPUT in SEARCH status] no constraint 11 PASS [INPUT in SEARCH status] no constraint (in a form) 12 PASS [INPUT in SEARCH status] not suffering from being too long 13 PASS [INPUT in SEARCH status] not suffering from being too long (in a form) 14 PASS [INPUT in SEARCH status] suffering from a pattern mismatch 15 PASS [INPUT in SEARCH status] suffering from a pattern mismatch (in a form) 16 PASS [INPUT in SEARCH status] suffering from being missing 17 PASS [INPUT in SEARCH status] suffering from being missing (in a form) 18 PASS [INPUT in TEL status] no constraint 19 PASS [INPUT in TEL status] no constraint (in a form) 20 PASS [INPUT in TEL status] not suffering from being too long 21 PASS [INPUT in TEL status] not suffering from being too long (in a form) 22 PASS [INPUT in TEL status] suffering from a pattern mismatch 23 PASS [INPUT in TEL status] suffering from a pattern mismatch (in a form) 24 PASS [INPUT in TEL status] suffering from being missing 25 PASS [INPUT in TEL status] suffering from being missing (in a form) 26 PASS [INPUT in PASSWORD status] no constraint 27 PASS [INPUT in PASSWORD status] no constraint (in a form) 28 PASS [INPUT in PASSWORD status] not suffering from being too long 29 PASS [INPUT in PASSWORD status] not suffering from being too long (in a form) 30 PASS [INPUT in PASSWORD status] suffering from a pattern mismatch 31 PASS [INPUT in PASSWORD status] suffering from a pattern mismatch (in a form) 32 PASS [INPUT in PASSWORD status] suffering from being missing 33 PASS [INPUT in PASSWORD status] suffering from being missing (in a form) 34 PASS [INPUT in URL status] no constraint 35 PASS [INPUT in URL status] no constraint (in a form) 36 PASS [INPUT in URL status] not suffering from being too long 37 PASS [INPUT in URL status] not suffering from being too long (in a form) 38 PASS [INPUT in URL status] suffering from a pattern mismatch 39 PASS [INPUT in URL status] suffering from a pattern mismatch (in a form) 40 PASS [INPUT in URL status] suffering from a type mismatch 41 PASS [INPUT in URL status] suffering from a type mismatch (in a form) 42 PASS [INPUT in URL status] suffering from being missing 43 PASS [INPUT in URL status] suffering from being missing (in a form) 44 PASS [INPUT in EMAIL status] no constraint 45 PASS [INPUT in EMAIL status] no constraint (in a form) 46 PASS [INPUT in EMAIL status] not suffering from being too long 47 PASS [INPUT in EMAIL status] not suffering from being too long (in a form) 48 PASS [INPUT in EMAIL status] suffering from a pattern mismatch 49 PASS [INPUT in EMAIL status] suffering from a pattern mismatch (in a form) 50 PASS [INPUT in EMAIL status] suffering from a type mismatch 51 PASS [INPUT in EMAIL status] suffering from a type mismatch (in a form) 52 PASS [INPUT in EMAIL status] suffering from being missing 53 PASS [INPUT in EMAIL status] suffering from being missing (in a form) 54 PASS [INPUT in DATETIME-LOCAL status] no constraint 55 PASS [INPUT in DATETIME-LOCAL status] no constraint (in a form) 56 PASS [INPUT in DATETIME-LOCAL status] suffering from an overflow 57 PASS [INPUT in DATETIME-LOCAL status] suffering from an overflow (in a form) 58 PASS [INPUT in DATETIME-LOCAL status] suffering from an underflow 59 PASS [INPUT in DATETIME-LOCAL status] suffering from an underflow (in a form) 60 PASS [INPUT in DATETIME-LOCAL status] suffering from a step mismatch 61 PASS [INPUT in DATETIME-LOCAL status] suffering from a step mismatch (in a form) 62 PASS [INPUT in DATETIME-LOCAL status] suffering from being missing 63 PASS [INPUT in DATETIME-LOCAL status] suffering from being missing (in a form) 64 PASS [INPUT in DATE status] no constraint 65 PASS [INPUT in DATE status] no constraint (in a form) 66 PASS [INPUT in DATE status] suffering from an overflow 67 PASS [INPUT in DATE status] suffering from an overflow (in a form) 68 PASS [INPUT in DATE status] suffering from an underflow 69 PASS [INPUT in DATE status] suffering from an underflow (in a form) 70 PASS [INPUT in DATE status] suffering from a step mismatch 71 PASS [INPUT in DATE status] suffering from a step mismatch (in a form) 72 PASS [INPUT in DATE status] suffering from being missing 73 PASS [INPUT in DATE status] suffering from being missing (in a form) 74 PASS [INPUT in MONTH status] no constraint 75 PASS [INPUT in MONTH status] no constraint (in a form) 76 PASS [INPUT in MONTH status] suffering from an overflow 77 PASS [INPUT in MONTH status] suffering from an overflow (in a form) 78 PASS [INPUT in MONTH status] suffering from an underflow 79 PASS [INPUT in MONTH status] suffering from an underflow (in a form) 80 PASS [INPUT in MONTH status] suffering from a step mismatch 81 PASS [INPUT in MONTH status] suffering from a step mismatch (in a form) 82 PASS [INPUT in MONTH status] suffering from being missing 83 PASS [INPUT in MONTH status] suffering from being missing (in a form) 84 PASS [INPUT in WEEK status] no constraint 85 PASS [INPUT in WEEK status] no constraint (in a form) 86 PASS [INPUT in WEEK status] suffering from an overflow 87 PASS [INPUT in WEEK status] suffering from an overflow (in a form) 88 PASS [INPUT in WEEK status] suffering from an underflow 89 PASS [INPUT in WEEK status] suffering from an underflow (in a form) 90 PASS [INPUT in WEEK status] suffering from a step mismatch 91 PASS [INPUT in WEEK status] suffering from a step mismatch (in a form) 92 PASS [INPUT in WEEK status] suffering from being missing 93 PASS [INPUT in WEEK status] suffering from being missing (in a form) 94 PASS [INPUT in TIME status] no constraint 95 PASS [INPUT in TIME status] no constraint (in a form) 96 PASS [INPUT in TIME status] suffering from an overflow 97 PASS [INPUT in TIME status] suffering from an overflow (in a form) 98 PASS [INPUT in TIME status] suffering from an underflow 99 PASS [INPUT in TIME status] suffering from an underflow (in a form) 100 PASS [INPUT in TIME status] suffering from a step mismatch 101 PASS [INPUT in TIME status] suffering from a step mismatch (in a form) 102 PASS [INPUT in TIME status] suffering from being missing 103 PASS [INPUT in TIME status] suffering from being missing (in a form) 104 PASS [INPUT in NUMBER status] suffering from an overflow 105 PASS [INPUT in NUMBER status] suffering from an overflow (in a form) 106 PASS [INPUT in NUMBER status] suffering from an underflow 107 PASS [INPUT in NUMBER status] suffering from an underflow (in a form) 108 PASS [INPUT in NUMBER status] suffering from a step mismatch 109 PASS [INPUT in NUMBER status] suffering from a step mismatch (in a form) 110 PASS [INPUT in NUMBER status] suffering from being missing 111 PASS [INPUT in NUMBER status] suffering from being missing (in a form) 112 PASS [INPUT in CHECKBOX status] no constraint 113 PASS [INPUT in CHECKBOX status] no constraint (in a form) 114 PASS [INPUT in CHECKBOX status] suffering from being missing 115 PASS [INPUT in CHECKBOX status] suffering from being missing (in a form) 116 PASS [INPUT in RADIO status] no constraint 117 PASS [INPUT in RADIO status] no constraint (in a form) 118 PASS [INPUT in RADIO status] suffering from being missing 119 PASS [INPUT in RADIO status] suffering from being missing (in a form) 120 PASS [INPUT in FILE status] no constraint 121 PASS [INPUT in FILE status] no constraint (in a form) 122 PASS [INPUT in FILE status] suffering from being missing 123 PASS [INPUT in FILE status] suffering from being missing (in a form) 124 PASS [select] no constraint 125 PASS [select] no constraint (in a form) 126 PASS [select] suffering from being missing 127 PASS [select] suffering from being missing (in a form) 128 PASS [textarea] no constraint 129 PASS [textarea] no constraint (in a form) 130 PASS [textarea] suffering from being missing 131 PASS [textarea] suffering from being missing (in a form) 132 132 -
trunk/LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/html/semantics/forms/constraints/form-validation-reportValidity-expected.txt
r204096 r207380 1 1 2 FAIL [INPUT in TEXT status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 3 FAIL [INPUT in TEXT status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 4 FAIL [INPUT in TEXT status] suffering from being too long assert_true: The reportValidity method doesn't exist. expected true got false 5 FAIL [INPUT in TEXT status] suffering from being too long (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 6 FAIL [INPUT in TEXT status] suffering from a pattern mismatch assert_true: The reportValidity method doesn't exist. expected true got false 7 FAIL [INPUT in TEXT status] suffering from a pattern mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 8 FAIL [INPUT in TEXT status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 9 FAIL [INPUT in TEXT status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 10 FAIL [INPUT in SEARCH status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 11 FAIL [INPUT in SEARCH status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 12 FAIL [INPUT in SEARCH status] suffering from being too long assert_true: The reportValidity method doesn't exist. expected true got false 13 FAIL [INPUT in SEARCH status] suffering from being too long (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 14 FAIL [INPUT in SEARCH status] suffering from a pattern mismatch assert_true: The reportValidity method doesn't exist. expected true got false 15 FAIL [INPUT in SEARCH status] suffering from a pattern mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 16 FAIL [INPUT in SEARCH status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 17 FAIL [INPUT in SEARCH status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 18 FAIL [INPUT in TEL status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 19 FAIL [INPUT in TEL status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 20 FAIL [INPUT in TEL status] suffering from being too long assert_true: The reportValidity method doesn't exist. expected true got false 21 FAIL [INPUT in TEL status] suffering from being too long (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 22 FAIL [INPUT in TEL status] suffering from a pattern mismatch assert_true: The reportValidity method doesn't exist. expected true got false 23 FAIL [INPUT in TEL status] suffering from a pattern mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 24 FAIL [INPUT in TEL status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 25 FAIL [INPUT in TEL status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 26 FAIL [INPUT in PASSWORD status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 27 FAIL [INPUT in PASSWORD status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 28 FAIL [INPUT in PASSWORD status] suffering from being too long assert_true: The reportValidity method doesn't exist. expected true got false 29 FAIL [INPUT in PASSWORD status] suffering from being too long (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 30 FAIL [INPUT in PASSWORD status] suffering from a pattern mismatch assert_true: The reportValidity method doesn't exist. expected true got false 31 FAIL [INPUT in PASSWORD status] suffering from a pattern mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 32 FAIL [INPUT in PASSWORD status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 33 FAIL [INPUT in PASSWORD status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 34 FAIL [INPUT in URL status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 35 FAIL [INPUT in URL status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 36 FAIL [INPUT in URL status] suffering from being too long assert_true: The reportValidity method doesn't exist. expected true got false 37 FAIL [INPUT in URL status] suffering from being too long (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 38 FAIL [INPUT in URL status] suffering from a pattern mismatch assert_true: The reportValidity method doesn't exist. expected true got false 39 FAIL [INPUT in URL status] suffering from a pattern mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 40 FAIL [INPUT in URL status] suffering from a type mismatch assert_true: The reportValidity method doesn't exist. expected true got false 41 FAIL [INPUT in URL status] suffering from a type mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 42 FAIL [INPUT in URL status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 43 FAIL [INPUT in URL status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 44 FAIL [INPUT in EMAIL status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 45 FAIL [INPUT in EMAIL status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 46 FAIL [INPUT in EMAIL status] suffering from being too long assert_true: The reportValidity method doesn't exist. expected true got false 47 FAIL [INPUT in EMAIL status] suffering from being too long (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 48 FAIL [INPUT in EMAIL status] suffering from a pattern mismatch assert_true: The reportValidity method doesn't exist. expected true got false 49 FAIL [INPUT in EMAIL status] suffering from a pattern mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 50 FAIL [INPUT in EMAIL status] suffering from a type mismatch assert_true: The reportValidity method doesn't exist. expected true got false 51 FAIL [INPUT in EMAIL status] suffering from a type mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 52 FAIL [INPUT in EMAIL status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 53 FAIL [INPUT in EMAIL status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 54 FAIL [INPUT in DATETIME status] The datetime type must be supported. assert_equals: The datetime type should be supported. expected "datetime" but got "text" 55 FAIL [INPUT in DATE status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 56 FAIL [INPUT in DATE status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 57 FAIL [INPUT in DATE status] suffering from an overflow assert_true: The reportValidity method doesn't exist. expected true got false 58 FAIL [INPUT in DATE status] suffering from an overflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 59 FAIL [INPUT in DATE status] suffering from an underflow assert_true: The reportValidity method doesn't exist. expected true got false 60 FAIL [INPUT in DATE status] suffering from an underflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 61 FAIL [INPUT in DATE status] suffering from a step mismatch assert_true: The reportValidity method doesn't exist. expected true got false 62 FAIL [INPUT in DATE status] suffering from a step mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 63 FAIL [INPUT in DATE status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 64 FAIL [INPUT in DATE status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 65 FAIL [INPUT in MONTH status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 66 FAIL [INPUT in MONTH status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 67 FAIL [INPUT in MONTH status] suffering from an overflow assert_true: The reportValidity method doesn't exist. expected true got false 68 FAIL [INPUT in MONTH status] suffering from an overflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 69 FAIL [INPUT in MONTH status] suffering from an underflow assert_true: The reportValidity method doesn't exist. expected true got false 70 FAIL [INPUT in MONTH status] suffering from an underflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 71 FAIL [INPUT in MONTH status] suffering from a step mismatch assert_true: The reportValidity method doesn't exist. expected true got false 72 FAIL [INPUT in MONTH status] suffering from a step mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 73 FAIL [INPUT in MONTH status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 74 FAIL [INPUT in MONTH status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 75 FAIL [INPUT in WEEK status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 76 FAIL [INPUT in WEEK status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 77 FAIL [INPUT in WEEK status] suffering from an overflow assert_true: The reportValidity method doesn't exist. expected true got false 78 FAIL [INPUT in WEEK status] suffering from an overflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 79 FAIL [INPUT in WEEK status] suffering from an underflow assert_true: The reportValidity method doesn't exist. expected true got false 80 FAIL [INPUT in WEEK status] suffering from an underflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 81 FAIL [INPUT in WEEK status] suffering from a step mismatch assert_true: The reportValidity method doesn't exist. expected true got false 82 FAIL [INPUT in WEEK status] suffering from a step mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 83 FAIL [INPUT in WEEK status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 84 FAIL [INPUT in WEEK status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 85 FAIL [INPUT in TIME status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 86 FAIL [INPUT in TIME status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 87 FAIL [INPUT in TIME status] suffering from an overflow assert_true: The reportValidity method doesn't exist. expected true got false 88 FAIL [INPUT in TIME status] suffering from an overflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 89 FAIL [INPUT in TIME status] suffering from an underflow assert_true: The reportValidity method doesn't exist. expected true got false 90 FAIL [INPUT in TIME status] suffering from an underflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 91 FAIL [INPUT in TIME status] suffering from a step mismatch assert_true: The reportValidity method doesn't exist. expected true got false 92 FAIL [INPUT in TIME status] suffering from a step mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 93 FAIL [INPUT in TIME status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 94 FAIL [INPUT in TIME status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 95 FAIL [INPUT in NUMBER status] suffering from an overflow assert_true: The reportValidity method doesn't exist. expected true got false 96 FAIL [INPUT in NUMBER status] suffering from an overflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 97 FAIL [INPUT in NUMBER status] suffering from an underflow assert_true: The reportValidity method doesn't exist. expected true got false 98 FAIL [INPUT in NUMBER status] suffering from an underflow (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 99 FAIL [INPUT in NUMBER status] suffering from a step mismatch assert_true: The reportValidity method doesn't exist. expected true got false 100 FAIL [INPUT in NUMBER status] suffering from a step mismatch (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 101 FAIL [INPUT in NUMBER status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 102 FAIL [INPUT in NUMBER status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 103 FAIL [INPUT in CHECKBOX status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 104 FAIL [INPUT in CHECKBOX status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 105 FAIL [INPUT in CHECKBOX status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 106 FAIL [INPUT in CHECKBOX status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 107 FAIL [INPUT in RADIO status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 108 FAIL [INPUT in RADIO status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 109 FAIL [INPUT in RADIO status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 110 FAIL [INPUT in RADIO status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 111 FAIL [INPUT in FILE status] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 112 FAIL [INPUT in FILE status] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 113 FAIL [INPUT in FILE status] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 114 FAIL [INPUT in FILE status] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 115 FAIL [select] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 116 FAIL [select] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 117 FAIL [select] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 118 FAIL [select] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 119 FAIL [textarea] no constraint assert_true: The reportValidity method doesn't exist. expected true got false 120 FAIL [textarea] no constraint (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 121 FAIL [textarea] suffering from being missing assert_true: The reportValidity method doesn't exist. expected true got false 122 FAIL [textarea] suffering from being missing (in a form) assert_true: The reportValidity method doesn't exist. expected true got false 2 PASS [INPUT in TEXT status] no constraint 3 PASS [INPUT in TEXT status] no constraint (in a form) 4 PASS [INPUT in TEXT status] not suffering from being too long 5 PASS [INPUT in TEXT status] not suffering from being too long (in a form) 6 PASS [INPUT in TEXT status] suffering from a pattern mismatch 7 PASS [INPUT in TEXT status] suffering from a pattern mismatch (in a form) 8 PASS [INPUT in TEXT status] suffering from being missing 9 PASS [INPUT in TEXT status] suffering from being missing (in a form) 10 PASS [INPUT in SEARCH status] no constraint 11 PASS [INPUT in SEARCH status] no constraint (in a form) 12 PASS [INPUT in SEARCH status] not suffering from being too long 13 PASS [INPUT in SEARCH status] not suffering from being too long (in a form) 14 PASS [INPUT in SEARCH status] suffering from a pattern mismatch 15 PASS [INPUT in SEARCH status] suffering from a pattern mismatch (in a form) 16 PASS [INPUT in SEARCH status] suffering from being missing 17 PASS [INPUT in SEARCH status] suffering from being missing (in a form) 18 PASS [INPUT in TEL status] no constraint 19 PASS [INPUT in TEL status] no constraint (in a form) 20 PASS [INPUT in TEL status] not suffering from being too long 21 PASS [INPUT in TEL status] not suffering from being too long (in a form) 22 PASS [INPUT in TEL status] suffering from a pattern mismatch 23 PASS [INPUT in TEL status] suffering from a pattern mismatch (in a form) 24 PASS [INPUT in TEL status] suffering from being missing 25 PASS [INPUT in TEL status] suffering from being missing (in a form) 26 PASS [INPUT in PASSWORD status] no constraint 27 PASS [INPUT in PASSWORD status] no constraint (in a form) 28 PASS [INPUT in PASSWORD status] not suffering from being too long 29 PASS [INPUT in PASSWORD status] not suffering from being too long (in a form) 30 PASS [INPUT in PASSWORD status] suffering from a pattern mismatch 31 PASS [INPUT in PASSWORD status] suffering from a pattern mismatch (in a form) 32 PASS [INPUT in PASSWORD status] suffering from being missing 33 PASS [INPUT in PASSWORD status] suffering from being missing (in a form) 34 PASS [INPUT in URL status] no constraint 35 PASS [INPUT in URL status] no constraint (in a form) 36 PASS [INPUT in URL status] not suffering from being too long 37 PASS [INPUT in URL status] not suffering from being too long (in a form) 38 PASS [INPUT in URL status] suffering from a pattern mismatch 39 PASS [INPUT in URL status] suffering from a pattern mismatch (in a form) 40 PASS [INPUT in URL status] suffering from a type mismatch 41 PASS [INPUT in URL status] suffering from a type mismatch (in a form) 42 PASS [INPUT in URL status] suffering from being missing 43 PASS [INPUT in URL status] suffering from being missing (in a form) 44 PASS [INPUT in EMAIL status] no constraint 45 PASS [INPUT in EMAIL status] no constraint (in a form) 46 PASS [INPUT in EMAIL status] not suffering from being too long 47 PASS [INPUT in EMAIL status] not suffering from being too long (in a form) 48 PASS [INPUT in EMAIL status] suffering from a pattern mismatch 49 PASS [INPUT in EMAIL status] suffering from a pattern mismatch (in a form) 50 PASS [INPUT in EMAIL status] suffering from a type mismatch 51 PASS [INPUT in EMAIL status] suffering from a type mismatch (in a form) 52 PASS [INPUT in EMAIL status] suffering from being missing 53 PASS [INPUT in EMAIL status] suffering from being missing (in a form) 54 PASS [INPUT in DATETIME-LOCAL status] no constraint 55 PASS [INPUT in DATETIME-LOCAL status] no constraint (in a form) 56 PASS [INPUT in DATETIME-LOCAL status] suffering from an overflow 57 PASS [INPUT in DATETIME-LOCAL status] suffering from an overflow (in a form) 58 PASS [INPUT in DATETIME-LOCAL status] suffering from an underflow 59 PASS [INPUT in DATETIME-LOCAL status] suffering from an underflow (in a form) 60 PASS [INPUT in DATETIME-LOCAL status] suffering from a step mismatch 61 PASS [INPUT in DATETIME-LOCAL status] suffering from a step mismatch (in a form) 62 PASS [INPUT in DATETIME-LOCAL status] suffering from being missing 63 PASS [INPUT in DATETIME-LOCAL status] suffering from being missing (in a form) 64 PASS [INPUT in DATE status] no constraint 65 PASS [INPUT in DATE status] no constraint (in a form) 66 PASS [INPUT in DATE status] suffering from an overflow 67 PASS [INPUT in DATE status] suffering from an overflow (in a form) 68 PASS [INPUT in DATE status] suffering from an underflow 69 PASS [INPUT in DATE status] suffering from an underflow (in a form) 70 PASS [INPUT in DATE status] suffering from a step mismatch 71 PASS [INPUT in DATE status] suffering from a step mismatch (in a form) 72 PASS [INPUT in DATE status] suffering from being missing 73 PASS [INPUT in DATE status] suffering from being missing (in a form) 74 PASS [INPUT in MONTH status] no constraint 75 PASS [INPUT in MONTH status] no constraint (in a form) 76 PASS [INPUT in MONTH status] suffering from an overflow 77 PASS [INPUT in MONTH status] suffering from an overflow (in a form) 78 PASS [INPUT in MONTH status] suffering from an underflow 79 PASS [INPUT in MONTH status] suffering from an underflow (in a form) 80 PASS [INPUT in MONTH status] suffering from a step mismatch 81 PASS [INPUT in MONTH status] suffering from a step mismatch (in a form) 82 PASS [INPUT in MONTH status] suffering from being missing 83 PASS [INPUT in MONTH status] suffering from being missing (in a form) 84 PASS [INPUT in WEEK status] no constraint 85 PASS [INPUT in WEEK status] no constraint (in a form) 86 PASS [INPUT in WEEK status] suffering from an overflow 87 PASS [INPUT in WEEK status] suffering from an overflow (in a form) 88 PASS [INPUT in WEEK status] suffering from an underflow 89 PASS [INPUT in WEEK status] suffering from an underflow (in a form) 90 PASS [INPUT in WEEK status] suffering from a step mismatch 91 PASS [INPUT in WEEK status] suffering from a step mismatch (in a form) 92 PASS [INPUT in WEEK status] suffering from being missing 93 PASS [INPUT in WEEK status] suffering from being missing (in a form) 94 PASS [INPUT in TIME status] no constraint 95 PASS [INPUT in TIME status] no constraint (in a form) 96 PASS [INPUT in TIME status] suffering from an overflow 97 PASS [INPUT in TIME status] suffering from an overflow (in a form) 98 PASS [INPUT in TIME status] suffering from an underflow 99 PASS [INPUT in TIME status] suffering from an underflow (in a form) 100 PASS [INPUT in TIME status] suffering from a step mismatch 101 PASS [INPUT in TIME status] suffering from a step mismatch (in a form) 102 PASS [INPUT in TIME status] suffering from being missing 103 PASS [INPUT in TIME status] suffering from being missing (in a form) 104 PASS [INPUT in NUMBER status] suffering from an overflow 105 PASS [INPUT in NUMBER status] suffering from an overflow (in a form) 106 PASS [INPUT in NUMBER status] suffering from an underflow 107 PASS [INPUT in NUMBER status] suffering from an underflow (in a form) 108 PASS [INPUT in NUMBER status] suffering from a step mismatch 109 PASS [INPUT in NUMBER status] suffering from a step mismatch (in a form) 110 PASS [INPUT in NUMBER status] suffering from being missing 111 PASS [INPUT in NUMBER status] suffering from being missing (in a form) 112 PASS [INPUT in CHECKBOX status] no constraint 113 PASS [INPUT in CHECKBOX status] no constraint (in a form) 114 PASS [INPUT in CHECKBOX status] suffering from being missing 115 PASS [INPUT in CHECKBOX status] suffering from being missing (in a form) 116 PASS [INPUT in RADIO status] no constraint 117 PASS [INPUT in RADIO status] no constraint (in a form) 118 PASS [INPUT in RADIO status] suffering from being missing 119 PASS [INPUT in RADIO status] suffering from being missing (in a form) 120 PASS [INPUT in FILE status] no constraint 121 PASS [INPUT in FILE status] no constraint (in a form) 122 PASS [INPUT in FILE status] suffering from being missing 123 PASS [INPUT in FILE status] suffering from being missing (in a form) 124 PASS [select] no constraint 125 PASS [select] no constraint (in a form) 126 PASS [select] suffering from being missing 127 PASS [select] suffering from being missing (in a form) 128 PASS [textarea] no constraint 129 PASS [textarea] no constraint (in a form) 130 PASS [textarea] suffering from being missing 131 PASS [textarea] suffering from being missing (in a form) 123 132 -
trunk/Source/WebCore/ChangeLog
r207379 r207380 1 2016-10-15 Chris Dumez <cdumez@apple.com> 2 3 Add support for reportValidity() on form and form control elements 4 https://bugs.webkit.org/show_bug.cgi?id=163479 5 6 Reviewed by Darin Adler. 7 8 Add support for reportValidity() on form and form control elements: 9 - https://html.spec.whatwg.org/#dom-form-reportvalidity 10 - https://html.spec.whatwg.org/#dom-cva-reportvalidity 11 12 Firefox and Chrome already support this. 13 14 Demo: https://googlechrome.github.io/samples/report-validity/ 15 16 No new tests, rebaselined existing tests. 17 18 * html/HTMLButtonElement.idl: 19 * html/HTMLFieldSetElement.idl: 20 * html/HTMLFormElement.idl: 21 * html/HTMLInputElement.idl: 22 * html/HTMLKeygenElement.idl: 23 * html/HTMLObjectElement.idl: 24 * html/HTMLOutputElement.idl: 25 * html/HTMLSelectElement.idl: 26 * html/HTMLTextAreaElement.idl: 27 Add reportValidity() operation. 28 29 * html/HTMLFormControlElement.cpp: 30 (WebCore::HTMLFormControlElement::checkValidity): 31 32 (WebCore::HTMLFormControlElement::reportValidity): 33 Add implementation for reportValidity() for form control elements. 34 First, it calls checkValidity() and returns early if there is no 35 constraint violation. if the JS canceled the 'invalid' event 36 fired by checkValidity(), then return early as well, as per the 37 specification. If the element is focusable, we scroll to it, 38 focus it and show the validation message. Otherwise, we log a 39 error message to the console. The last part of the behavior 40 matches what we already did in HTMLFormElement::validateInteractively() 41 and complies with the behavior in the specification. 42 43 (WebCore::HTMLFormControlElement::focusAndShowValidationMessage): 44 Add utility function to scroll to the form control element, focus 45 it and show its validation message. This code was moved from 46 HTMLFormElement::validateInteractively() so that it could be reused 47 in HTMLFormControlElement::reportValidity(). 48 49 * html/HTMLFormControlElement.h: 50 * html/HTMLFormElement.cpp: 51 (WebCore::HTMLFormElement::validateInteractively): 52 Move the early abort checks to the existing call site (prepareForSubmission) 53 so that we can reuse this method for reportValidity(). 54 55 (WebCore::HTMLFormElement::prepareForSubmission): 56 Only call validateInteractively() if we really should validate. Those checks 57 used to be in validateInteractively() but I moved them here so we could more 58 easily reuse validateInteractively(). 59 60 (WebCore::HTMLFormElement::checkValidity): 61 (WebCore::HTMLFormElement::checkInvalidControlsAndCollectUnhandled): 62 Update Vector type to be a Vector of HTMLFormControlElement given that we 63 only add HTMLFormControlElement objects to it and that it results it simpler 64 code. 65 66 (WebCore::HTMLFormElement::reportValidity): 67 Add implementation for reportValidity() for form elements. The 68 implementation calls our already existing validateInteractively() 69 method, as per the specification. 70 71 * html/HTMLFormElement.h: 72 73 * html/HTMLObjectElement.h: 74 reportValidity() returns true unconditionally for object elements, 75 similarly to checkValidity(). 76 1 77 2016-10-15 Simon Fraser <simon.fraser@apple.com> 2 78 -
trunk/Source/WebCore/html/HTMLButtonElement.idl
r207355 r207380 38 38 readonly attribute DOMString validationMessage; 39 39 boolean checkValidity(); 40 boolean reportValidity(); 40 41 void setCustomValidity(DOMString? error); 41 42 -
trunk/Source/WebCore/html/HTMLFieldSetElement.idl
r207355 r207380 31 31 readonly attribute DOMString validationMessage; 32 32 boolean checkValidity(); 33 boolean reportValidity(); 33 34 void setCustomValidity(DOMString? error); 34 35 }; -
trunk/Source/WebCore/html/HTMLFormControlElement.cpp
r207018 r207380 477 477 } 478 478 479 bool HTMLFormControlElement::checkValidity(Vector<RefPtr< FormAssociatedElement>>* unhandledInvalidControls)479 bool HTMLFormControlElement::checkValidity(Vector<RefPtr<HTMLFormControlElement>>* unhandledInvalidControls) 480 480 { 481 481 if (!willValidate() || isValidFormControlElement()) … … 490 490 } 491 491 492 bool HTMLFormControlElement::reportValidity() 493 { 494 Vector<RefPtr<HTMLFormControlElement>> elements; 495 if (checkValidity(&elements)) 496 return true; 497 498 if (elements.isEmpty()) 499 return false; 500 501 // Needs to update layout now because we'd like to call isFocusable(), which 502 // has !renderer()->needsLayout() assertion. 503 document().updateLayoutIgnorePendingStylesheets(); 504 505 if (inDocument() && isFocusable()) { 506 focusAndShowValidationMessage(); 507 return false; 508 } 509 510 if (document().frame()) { 511 String message = makeString("An invalid form control with name='", name(), "' is not focusable."); 512 document().addConsoleMessage(MessageSource::Rendering, MessageLevel::Error, message); 513 } 514 515 return false; 516 } 517 518 void HTMLFormControlElement::focusAndShowValidationMessage() 519 { 520 scrollIntoViewIfNeeded(false); 521 focus(); 522 updateVisibleValidationMessage(); 523 } 524 492 525 inline bool HTMLFormControlElement::isValidFormControlElement() const 493 526 { -
trunk/Source/WebCore/html/HTMLFormControlElement.h
r205249 r207380 104 104 void updateVisibleValidationMessage(); 105 105 void hideVisibleValidationMessage(); 106 WEBCORE_EXPORT bool checkValidity(Vector<RefPtr<FormAssociatedElement>>* unhandledInvalidControls = nullptr); 106 WEBCORE_EXPORT bool checkValidity(Vector<RefPtr<HTMLFormControlElement>>* unhandledInvalidControls = nullptr); 107 bool reportValidity(); 108 void focusAndShowValidationMessage(); 107 109 // This must be called when a validation constraint or control value is changed. 108 110 void updateValidity(); -
trunk/Source/WebCore/html/HTMLFormElement.cpp
r205249 r207380 215 215 } 216 216 217 bool HTMLFormElement::validateInteractively(Event& event) 218 { 219 if (!document().page() || !document().page()->settings().interactiveFormValidationEnabled() || noValidate()) 220 return true; 221 222 HTMLFormControlElement* submitElement = submitElementFromEvent(event); 223 if (submitElement && submitElement->formNoValidate()) 224 return true; 225 217 bool HTMLFormElement::validateInteractively() 218 { 226 219 for (auto& associatedElement : m_associatedElements) { 227 220 if (is<HTMLFormControlElement>(*associatedElement)) … … 229 222 } 230 223 231 Vector<RefPtr< FormAssociatedElement>> unhandledInvalidControls;224 Vector<RefPtr<HTMLFormControlElement>> unhandledInvalidControls; 232 225 if (!checkInvalidControlsAndCollectUnhandled(unhandledInvalidControls)) 233 226 return true; … … 243 236 // Focus on the first focusable control and show a validation message. 244 237 for (auto& control : unhandledInvalidControls) { 245 HTMLElement& element = control->asHTMLElement(); 246 if (element.inDocument() && element.isFocusable()) { 247 element.scrollIntoViewIfNeeded(false); 248 element.focus(); 249 if (is<HTMLFormControlElement>(element)) 250 downcast<HTMLFormControlElement>(element).updateVisibleValidationMessage(); 238 if (control->inDocument() && control->isFocusable()) { 239 control->focusAndShowValidationMessage(); 251 240 break; 252 241 } … … 256 245 if (document().frame()) { 257 246 for (auto& control : unhandledInvalidControls) { 258 HTMLElement& element = control->asHTMLElement(); 259 if (element.inDocument() && element.isFocusable()) 247 if (control->inDocument() && control->isFocusable()) 260 248 continue; 261 String message("An invalid form control with name='%name' is not focusable."); 262 message.replace("%name", control->name()); 249 String message = makeString("An invalid form control with name='", control->name(), "' is not focusable."); 263 250 document().addConsoleMessage(MessageSource::Rendering, MessageLevel::Error, message); 264 251 } … … 277 264 m_shouldSubmit = false; 278 265 266 bool shouldValidate = document().page() && document().page()->settings().interactiveFormValidationEnabled() && !noValidate(); 267 268 HTMLFormControlElement* submitElement = submitElementFromEvent(event); 269 if (submitElement && submitElement->formNoValidate()) 270 shouldValidate = false; 271 279 272 // Interactive validation must be done before dispatching the submit event. 280 if ( !validateInteractively(event)) {273 if (shouldValidate && !validateInteractively()) { 281 274 m_isSubmittingOrPreparingForSubmission = false; 282 275 return; … … 753 746 bool HTMLFormElement::checkValidity() 754 747 { 755 Vector<RefPtr< FormAssociatedElement>> controls;748 Vector<RefPtr<HTMLFormControlElement>> controls; 756 749 return !checkInvalidControlsAndCollectUnhandled(controls); 757 750 } 758 751 759 bool HTMLFormElement::checkInvalidControlsAndCollectUnhandled(Vector<RefPtr< FormAssociatedElement>>& unhandledInvalidControls)752 bool HTMLFormElement::checkInvalidControlsAndCollectUnhandled(Vector<RefPtr<HTMLFormControlElement>>& unhandledInvalidControls) 760 753 { 761 754 Ref<HTMLFormElement> protectedThis(*this); … … 777 770 } 778 771 772 bool HTMLFormElement::reportValidity() 773 { 774 return validateInteractively(); 775 } 776 779 777 #ifndef NDEBUG 780 778 void HTMLFormElement::assertItemCanBeInPastNamesMap(FormNamedItem* item) const -
trunk/Source/WebCore/html/HTMLFormElement.h
r205249 r207380 116 116 117 117 WEBCORE_EXPORT bool checkValidity(); 118 bool reportValidity(); 118 119 119 120 #if ENABLE(REQUEST_AUTOCOMPLETE) … … 162 163 unsigned formElementIndex(FormAssociatedElement*); 163 164 164 // Returns true if the submission should proceed. 165 bool validateInteractively(Event&); 165 bool validateInteractively(); 166 166 167 167 // Validates each of the controls, and stores controls of which 'invalid' 168 168 // event was not canceled to the specified vector. Returns true if there 169 169 // are any invalid controls in this form. 170 bool checkInvalidControlsAndCollectUnhandled(Vector<RefPtr< FormAssociatedElement>>&);170 bool checkInvalidControlsAndCollectUnhandled(Vector<RefPtr<HTMLFormControlElement>>&); 171 171 172 172 HTMLElement* elementFromPastNamesMap(const AtomicString&) const; -
trunk/Source/WebCore/html/HTMLFormElement.idl
r207355 r207380 48 48 void reset(); 49 49 boolean checkValidity(); 50 boolean reportValidity(); 50 51 51 52 [Conditional=REQUEST_AUTOCOMPLETE] void requestAutocomplete(); -
trunk/Source/WebCore/html/HTMLInputElement.idl
r207355 r207380 72 72 readonly attribute DOMString validationMessage; 73 73 boolean checkValidity(); 74 boolean reportValidity(); 74 75 void setCustomValidity(DOMString? error); 75 76 -
trunk/Source/WebCore/html/HTMLKeygenElement.idl
r207355 r207380 43 43 readonly attribute DOMString validationMessage; 44 44 boolean checkValidity(); 45 boolean reportValidity(); 45 46 void setCustomValidity(DOMString? error); 46 47 -
trunk/Source/WebCore/html/HTMLObjectElement.h
r204320 r207380 48 48 // Note that the object elements are always barred from constraint validation. 49 49 static bool checkValidity() { return true; } 50 static bool reportValidity() { return true; } 51 50 52 void setCustomValidity(const String&) final { } 51 53 String validationMessage() const final { return String(); } -
trunk/Source/WebCore/html/HTMLObjectElement.idl
r206723 r207380 45 45 readonly attribute DOMString validationMessage; 46 46 boolean checkValidity(); 47 boolean reportValidity(); 47 48 void setCustomValidity(DOMString? error); 48 49 -
trunk/Source/WebCore/html/HTMLOutputElement.idl
r207355 r207380 37 37 readonly attribute DOMString validationMessage; 38 38 boolean checkValidity(); 39 boolean reportValidity(); 39 40 void setCustomValidity(DOMString? error); 40 41 -
trunk/Source/WebCore/html/HTMLSelectElement.idl
r207355 r207380 60 60 readonly attribute DOMString validationMessage; 61 61 boolean checkValidity(); 62 boolean reportValidity(); 62 63 void setCustomValidity(DOMString? error); // FIXME: Argument should not be nullable. 63 64 -
trunk/Source/WebCore/html/HTMLTextAreaElement.idl
r207355 r207380 44 44 readonly attribute DOMString validationMessage; 45 45 boolean checkValidity(); 46 boolean reportValidity(); 46 47 void setCustomValidity(DOMString? error); 47 48
Note: See TracChangeset
for help on using the changeset viewer.