Changeset 286413 in webkit
- Timestamp:
- Dec 1, 2021 10:05:10 PM (8 months ago)
- Location:
- trunk
- Files:
-
- 10 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valueMissing-expected.txt (modified) (2 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/constraints/radio-valueMissing-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valueMissing-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valueMissing-expected.txt (modified) (2 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/BaseDateAndTimeInputType.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLInputElement.cpp (modified) (1 diff)
-
Source/WebCore/html/TextFieldInputType.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r286409 r286413 1 2021-12-01 Chris Dumez <cdumez@apple.com> 2 3 validity.valueMissing should not rely on element's disabled state for inputs of type radio/file/checkbox 4 https://bugs.webkit.org/show_bug.cgi?id=233735 5 6 Reviewed by Darin Adler. 7 8 Rebaseline WPT tests now that more checks are passing. 9 10 * platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valueMissing-expected.txt: 11 1 12 2021-12-01 Arcady Goldmints-Orlov <agoldmints@igalia.com> 2 13 -
trunk/LayoutTests/imported/w3c/ChangeLog
r286365 r286413 1 2021-12-01 Chris Dumez <cdumez@apple.com> 2 3 validity.valueMissing should not rely on element's disabled state for inputs of type radio/file/checkbox 4 https://bugs.webkit.org/show_bug.cgi?id=233735 5 6 Reviewed by Darin Adler. 7 8 Rebaseline WPT tests now that more checks are passing. 9 10 * web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valueMissing-expected.txt: 11 * web-platform-tests/html/semantics/forms/constraints/radio-valueMissing-expected.txt: 12 1 13 2021-12-01 Antti Koivisto <antti@apple.com> 2 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valueMissing-expected.txt
r267646 r286413 36 36 PASS [INPUT in CHECKBOX status] The required attribute is not set 37 37 PASS [INPUT in CHECKBOX status] The checked attribute is true 38 FAIL [INPUT in CHECKBOX status] The checked attribute is false assert_true: The validity.valueMissing should be true, when control is disabled. expected true gotfalse38 PASS [INPUT in CHECKBOX status] The checked attribute is false 39 39 PASS [INPUT in RADIO status] The required attribute is not set 40 40 PASS [INPUT in RADIO status] The checked attribute is true … … 42 42 PASS [INPUT in RADIO status] The checked attribute is false and the name attribute is empty 43 43 PASS [INPUT in FILE status] The required attribute is not set 44 FAIL [INPUT in FILE status] The Files attribute is null assert_true: The validity.valueMissing should be true, when control is disabled. expected true got false 44 PASS [INPUT in FILE status] The Files attribute is null 45 45 PASS [select] The required attribute is not set 46 46 PASS [select] Selected the option with value equals to 1 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/constraints/radio-valueMissing-expected.txt
r267646 r286413 4 4 PASS One of the radios is required and checked 5 5 PASS One of the radios is required and another one is checked 6 FAIL One of the radios is required and disabled, but none checked assert_true: The radio10.validity.valueMissing should be true expected true got false 6 PASS One of the radios is required and disabled, but none checked 7 7 PASS One of the radios is required, checked and disabled 8 8 -
trunk/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valueMissing-expected.txt
r267658 r286413 82 82 PASS [INPUT in CHECKBOX status] The required attribute is not set 83 83 PASS [INPUT in CHECKBOX status] The checked attribute is true 84 FAIL [INPUT in CHECKBOX status] The checked attribute is false assert_true: The validity.valueMissing should be true, when control is disabled. expected true gotfalse84 PASS [INPUT in CHECKBOX status] The checked attribute is false 85 85 PASS [INPUT in RADIO status] The required attribute is not set 86 86 PASS [INPUT in RADIO status] The checked attribute is true … … 88 88 PASS [INPUT in RADIO status] The checked attribute is false and the name attribute is empty 89 89 PASS [INPUT in FILE status] The required attribute is not set 90 FAIL [INPUT in FILE status] The Files attribute is null assert_true: The validity.valueMissing should be true, when control is disabled. expected true got false 90 PASS [INPUT in FILE status] The Files attribute is null 91 91 PASS [select] The required attribute is not set 92 92 PASS [select] Selected the option with value equals to 1 -
trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valueMissing-expected.txt
r267658 r286413 82 82 PASS [INPUT in CHECKBOX status] The required attribute is not set 83 83 PASS [INPUT in CHECKBOX status] The checked attribute is true 84 FAIL [INPUT in CHECKBOX status] The checked attribute is false assert_true: The validity.valueMissing should be true, when control is disabled. expected true gotfalse84 PASS [INPUT in CHECKBOX status] The checked attribute is false 85 85 PASS [INPUT in RADIO status] The required attribute is not set 86 86 PASS [INPUT in RADIO status] The checked attribute is true … … 88 88 PASS [INPUT in RADIO status] The checked attribute is false and the name attribute is empty 89 89 PASS [INPUT in FILE status] The required attribute is not set 90 FAIL [INPUT in FILE status] The Files attribute is null assert_true: The validity.valueMissing should be true, when control is disabled. expected true got false 90 PASS [INPUT in FILE status] The Files attribute is null 91 91 PASS [select] The required attribute is not set 92 92 PASS [select] Selected the option with value equals to 1 -
trunk/Source/WebCore/ChangeLog
r286411 r286413 1 2021-12-01 Chris Dumez <cdumez@apple.com> 2 3 validity.valueMissing should not rely on element's disabled state for inputs of type radio/file/checkbox 4 https://bugs.webkit.org/show_bug.cgi?id=233735 5 6 Reviewed by Darin Adler. 7 8 validity.valueMissing should not rely on element's disabled state for inputs of type radio/file/checkbox: 9 - https://html.spec.whatwg.org/multipage/input.html#radio-button-state-(type=radio):suffering-from-being-missing 10 - https://html.spec.whatwg.org/multipage/input.html#file-upload-state-(type=file):suffering-from-being-missing 11 - https://html.spec.whatwg.org/multipage/input.html#checkbox-state-(type=checkbox):suffering-from-being-missing 12 13 This was causing us to fail a few WPT tests that are passing in both Blink and Gecko. 14 15 * html/BaseDateAndTimeInputType.cpp: 16 (WebCore::BaseDateAndTimeInputType::valueMissing const): 17 * html/HTMLInputElement.cpp: 18 (WebCore::HTMLInputElement::valueMissing const): 19 * html/TextFieldInputType.cpp: 20 (WebCore::TextFieldInputType::valueMissing const): 21 1 22 2021-12-01 Simon Fraser <simon.fraser@apple.com> 2 23 -
trunk/Source/WebCore/html/BaseDateAndTimeInputType.cpp
r283757 r286413 243 243 { 244 244 ASSERT(element()); 245 return element()->isRequired() && value.isEmpty();245 return !element()->isDisabledOrReadOnly() && element()->isRequired() && value.isEmpty(); 246 246 } 247 247 -
trunk/Source/WebCore/html/HTMLInputElement.cpp
r286316 r286413 302 302 bool HTMLInputElement::valueMissing() const 303 303 { 304 return willValidate() &&m_inputType->valueMissing(value());304 return m_inputType->valueMissing(value()); 305 305 } 306 306 -
trunk/Source/WebCore/html/TextFieldInputType.cpp
r283851 r286413 121 121 { 122 122 ASSERT(element()); 123 return element()->isRequired() && value.isEmpty();123 return !element()->isDisabledOrReadOnly() && element()->isRequired() && value.isEmpty(); 124 124 } 125 125
Note: See TracChangeset
for help on using the changeset viewer.