Fix a failing test caused by el.attributes returning a different order in different browsers. Closes #13.