children() return value order
I think the answer to my question is "yes" but I want to be sure.
<div>
<b>1</b>
<b>2</b>
</div>
<div>
<b>3</b>
<b>4</b>
</div>
<script>
var a = "";
$("div").children().each(function(){a = a + this.innerText});
// Does a contain "1234"? But more importantly, is it guaranteed to be the same across all browsers?
</script>
What if the HTML was:
<div>
<div>
<b>3</b>
<b>4</b>
</div>
<b>1</b>
<b>2</b>
</div>
<script>
var a = "";
$("div").children("b").each(function(){a += this.innerText});
// Does a contain "1234"? But more importantly, is it guaranteed to be the same across all browsers?
</script>