Custom elements: implement disabled attribute for form-associated custom element
Categories
(Core :: DOM: Core & HTML, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox95 | --- | fixed |
People
(Reporter: jdai, Assigned: edgar)
References
Details
Attachments
(3 files)
Reporter | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
I think this should be covered by bug 1556351, need to check if there is any wpt for disable attribute.
Assignee | ||
Comment 2•3 years ago
|
||
There is a wpt test for disabled
attribute: https://searchfox.org/mozilla-central/rev/b24799980a929597dcc553cb0854aa6c960c82b5/testing/web-platform/tests/custom-elements/form-associated/form-disabled-callback.html#74-88
Assignee | ||
Comment 3•3 years ago
|
||
(In reply to Edgar Chen [:edgar] from comment #1)
I think this should be covered by bug 1556351, need to check if there is any wpt for disable attribute.
Okay, bug 1556351 isn't enough, there are still two things we need to do,
- We should call UpdateDisabledState when the disabled attribute is changed on FACE.
- FACE should not append form data if it is disabled, other form elements do such check in SubmitNamesValues, like https://searchfox.org/mozilla-central/rev/b24799980a929597dcc553cb0854aa6c960c82b5/dom/html/HTMLButtonElement.cpp#302, but we could factor it out to https://searchfox.org/mozilla-central/rev/b24799980a929597dcc553cb0854aa6c960c82b5/dom/html/HTMLFormElement.cpp#1024-1027, then we don't need to handle the disabled state separately.
Assignee | ||
Comment 4•3 years ago
|
||
Depends on D127974
Assignee | ||
Comment 5•3 years ago
|
||
Depends on D129048
Assignee | ||
Comment 6•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Comment 7•3 years ago
|
||
Depends on D129049
Assignee | ||
Comment 9•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 11•3 years ago
|
||
Comment 12•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3364ef8828e7
https://hg.mozilla.org/mozilla-central/rev/30538dd493a8
https://hg.mozilla.org/mozilla-central/rev/1f3ae22c13d0
Description
•