Render element attributes in the order they were defined

`attributes` uses a LinkedHashMap, so the ordering is stable with the
input
8 files changed
tree: 4128c9517df16d9b2760eaa59982570a003c5c9a
  1. pkgs/