Fix WPT failures for changing `type` of `<input> element (testing/web-platform/tests/html/semantics/forms/the-input-element/type-change-state.html)
Categories
(Core :: DOM: Core & HTML, enhancement, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox68 | --- | fixed |
People
(Reporter: mbrodesser, Assigned: mbrodesser)
Details
Attachments
(1 file)
testing/web-platform/tests/html/semantics/forms/the-input-element/type-change-state.html currently has expected failures in testing/web-platform/meta/html/semantics/forms/the-input-element/type-change-state.html.ini. The code needs to be fixed, so that the expected failures can be removed.
| Assignee | ||
Updated•7 years ago
|
Updated•7 years ago
|
| Assignee | ||
Comment 1•7 years ago
|
||
Update of findings up to now:
- Throw
NS_ERROR_DOM_INVALID_STATE_ERRinstead ofNS_ERROR_DOM_SECURITY_ERRin HTMLInputElement.cpp to respect the spec. - The test-suite itself could hide problems because it uses the same input field for the sequence of all tests.
- One problem is that the cursor isn't moved to the beginning (instead, it's moved to the end).
--nsTextEditorState::SetValueis potentially buggy, the caching used there could be problematic too.
-- Potentially a fix is to pass a new flagnsTextEditorState::eSetValue_MoveCursorToBegininHTMLInputElement::HandleTypeChangetoHTMLInputElement::SetValueInternal.
| Assignee | ||
Comment 2•7 years ago
|
||
-
Change exception when setting '<input type="file">'s value according to spec.
-
Set 'selectionStart', 'selectionEnd', 'selectionDirection' according
to https://html.spec.whatwg.org/multipage/input.html#signal-a-type-change. -
Minorly update nsTextEditorState's documentation.
| Assignee | ||
Comment 3•7 years ago
|
||
Try run for the review: https://treeherder.mozilla.org/#/jobs?repo=try&revision=f9d9deb8445c1b38ba96a57484a95ca79d76b728&selectedJob=238347600. The few failures are unrelated to this change. Requesting check-in.
| Assignee | ||
Updated•7 years ago
|
Pushed by opoprus@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/732f41524a76
change exception and correct setting selectionStart/End/Direction for type change of '<input>' element r=smaug
Comment 5•7 years ago
|
||
| bugherder | ||
Description
•