Re: [selectors-api] First element example

2008-11-21 Thread Lachlan Hunt
Gavin Kistner wrote: The second example in section 8 uses the following code: var x = document.querySelector(#foo, #bar); It goes on to rather explicitly state, In the sample document above, it would select the div element with the ID of foo because it is first ***in document order*** (my

[selectors-api] First element example

2008-11-18 Thread Gavin Kistner
The second example in section 8 uses the following code: var x = document.querySelector(#foo, #bar); It goes on to rather explicitly state, In the sample document above, it would select the div element with the ID of foo because it is first ***in document order*** (my emphasis).