Don't depend on DOM attribute order

For compatibility with Firefox
Add warning about setHTML(getHTML()) roundtrip across different versions