required single radio buttons don't validate when created dynamically
Reported by
bolde...@gmail.com,
Sep 13
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0 Steps to reproduce the problem: 1. Create an input element, type=radio, that's unchecked and required 2. Inspect input.validity.valueMissing 3. The value should be true. The input is not checked but required What is the expected behavior? What went wrong? The value of input.validity.valueMissing is false. The behavior is correct for nodes already present in the HTML source, see <https://jsbin.com/curasa/edit?html,js,console,output>. Did this work before? No Does this work in other browsers? Yes Chrome version: 69.0.3497.92 (Offizieller Build) unknown (64-Bit) Channel: stable OS Version: Ubuntu 18.04 Flash Version: 31.0.0.108 Corresponding WHATWG HTML spec: https://html.spec.whatwg.org/multipage/input.html#radio-button-state-(type=radio) Corresponding W3C HTML 5.2 spec: https://www.w3.org/TR/html5/sec-forms.html#radio-button-state-typeradio
,
Sep 14
,
Sep 14
,
Sep 14
Able to reproduce the issue on chrome version #60.0.3112.20 reported chrome version #69.0.3497.92 and on latest canary#71.0.3552.2 on Ubuntu 17.10, Mac OS 10.13.6 and Windows 10. This is a non-regression issue and the behavior is seen from old M-60 builds, hence marking it as untriaged and requesting someone from the dev team to kindly look into the issue. Thanks.!
,
Sep 18
I guess it's not easy to fix validation of a disconnected required radio button. However it should be easy to fix validation on connecting it to a document. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by bolde...@gmail.com
, Sep 13