Steps to reproduce
- Open the attached testcase in Edge.
- Observe the background colors of the
What is the expected behavior?
<input>s should have white backgrounds.
What went wrong?
<input>s have red backgrounds, indicating that
:read-writematched the disabled
<input>s and disabled
Comments and activity
Per https://html.spec.whatwg.org/multipage/scripting.html#selector-read-write ,
- `` elements […] that are mutable (i.e. that […] and that are not disabled)
- `` elements that […], and that are not disabled
:read-writeshouldn’t be matching the disabled
s and disableds in the testcase.
- Microsoft Edge Team
Changed Status to “By design”
Okay, I totally understand how https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/7229941/ is objectionable, but I don’t see how the behavior in this bug (7226201;
disabledelements, which the user cannot interact with and are thus NOT writeable) could be seen as sensible.
Could you give your reasoning for why this is "By design"?
This also happens in Chrome. Not sure why we should say the textarea is readonly, it is only disabled. This is not semantically the same thing. If you believe this is a bug both Chrome and Edge share, could you please point out to the spec section that describes your behavior as correct?
MS Edge Team