I included a fiddle showing what happens when you apply focus to the element, it sets the focus to the 'day' part of the input, but I can't find any documentation on how the DOM renders and identifies each portion of the date.
How can I programmatically focus the month/year portions of an input[type="date"]
element, and is there any documentation on how this type of element gets rendered in the DOM?
https://jsfiddle.net/uytdhqax/
<input id="dob" type="date" />
document.getElementById('dob').focus()