INPUT_MULTIPLE_FIELDS_UI: Click on a label element won't select input[type=date] https://code.google.com/p/chromium/issues/detail?id=172850 <label>Date: <input type=date></label> Click on the "Date:" label should focus on the date input. If it was type=test, the click would focus on it.
Created attachment 185680 [details] Patch
Created attachment 185700 [details] Patch 2
Comment on attachment 185700 [details] Patch 2 View in context: https://bugs.webkit.org/attachment.cgi?id=185700&action=review > LayoutTests/fast/forms/date/date-click-on-label.html:2 > +<body id=body> Nit: id=body is not necessary. > LayoutTests/fast/forms/date/date-click-on-label.html:7 > +document.body.offsetLeft; Nit: What is it for? > LayoutTests/fast/forms/date/date-click-on-label.html:11 > +shouldBeEqualToString('document.activeElement.id', 'date1'); Shall we also check the value of document.activeElement.id before dispatching the click event?
Created attachment 185711 [details] Patch 3 Follow review comments
Created attachment 185712 [details] Patch 4 remove unrelated change
Comment on attachment 185712 [details] Patch 4 Looks better.
Comment on attachment 185712 [details] Patch 4 Clearing flags on attachment: 185712 Committed r141395: <http://trac.webkit.org/changeset/141395>
All reviewed patches have been landed. Closing bug.