RESOLVED INVALID 91304
input[value=foo] won't match without default value
https://bugs.webkit.org/show_bug.cgi?id=91304
Summary input[value=foo] won't match without default value
hellosexyprout
Reported 2012-07-13 18:13:28 PDT
Created attachment 152392 [details] Demo The selector `input[value=foo]` won't match an <input> element if it hasn't been given a default value. For example, it will match <input value=foo> but not <input> <script>document.getElementsByTagName("input")[0].value = "foo"</script> or <input> where the user fills the field herself. See the attached file for a demo.
Attachments
Demo (344 bytes, text/html)
2012-07-13 18:13 PDT, hellosexyprout
no flags
Kent Tamura
Comment 1 2012-07-16 19:19:02 PDT
This is an expected behavior defined by standards. * CSS attribute selector examines HTML content attribute * Text type <input> doesn't update the 'value' content attribute value by its editing value.
Note You need to log in before you can comment on or make changes to this bug.