References:
DOM 1 HTML, Interface HTMLSelectElement on the add method and
DOM 2 HTML, Interface HTMLSelectElement on the add method
says:
void add(in HTMLElement element, in HTMLElement before)
"Add a new element to the collection of OPTION elements for this SELECT.
This method is the equivalent of the appendChild method of the
Node interface if the before parameter is null. It is equivalent
to the insertBefore method on the parent of before in all other
cases. (...)
before of type HTMLElement:
The element to insert before,
or null for the tail of the list."
Firefox 1.5, Firefox 2, Firefox 3, Opera 9.27, Opera 9.50, Safari 3.1, Konqueror 3.5.8, Seamonkey 1.x Seamonkey 2.x, NS 7.0, NS 7.2, K-meleon 1.x, Galeon 2.0.4, Epiphany 2.22 all pass this test.