I am just trying to retrieve a text input element, but the pseudo selector 'first-of-type' seems not working. Ex:
//... requires dojo/query
var fields = query('input[type="text"]', form);// works well
var fields = query('input[type="text"]:first-of-type', form);// returns empty array :(
Then a another related question : what is the syntax to query the dom with multiple attr values : retrieve input with attr type = "text" AND attr name = "the-name" ?? Thank you for any help.