For ease of maintainability, attributes and methods declaration order should be as same as specification.
Similar work was done for input element:
Created attachment 129811 [details]
Comment on attachment 129811 [details]
Clearing flags on attachment: 129811
Committed r109557: <http://trac.webkit.org/changeset/109557>
All reviewed patches have been landed. Closing bug.