Are the values returned by Javascript's getElementsByName(...) guaranteed to be in the same order that they appear in the DOM?
with getElementsByName(name), the name is required, and thus the name order is irrelevent.
EDIT: I checked the specification and see nothing that would guarantee the order but I have never seen it OUT of order myself.
Spec: http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-71555259
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With