1. Open a document with <input type=date>. 2. Check aria-valuetext attribute of shadow nodes. ==> -webkit-datetime-edit-*-field elements have no aria-valuetext attribute 3. Put a number to a field. e.g. put "2013" to a year field ==> -webkit-datetime-edit-*-field has aria-valuetext="2013" 4. Delete the number in the field by Backspace key ==> -webkit-datetime-edit-*-field has aria-valuetext="blank" aria-valuetext should be consistent in the step 2 and step 4 above.
aria-valuenow is also inconsistent. Step 2: No aria-valuenow attribute Step 4: aria-valuenow="yyyy"
http://www.w3.org/TR/wai-aria/states_and_properties#aria-valuenow According to the specification, we should remove aria-valuenow attribute in Step 4. I think aria-valuetext should be "blank" in Step 2.
Also, aria-valuenow should be a number. We set non-numbers for AM/PM field.
Created attachment 184690 [details] Patch
Comment on attachment 184690 [details] Patch Looks good to me
Comment on attachment 184690 [details] Patch Clearing flags on attachment: 184690 Committed r140803: <http://trac.webkit.org/changeset/140803>
All reviewed patches have been landed. Closing bug.