The value of a custom attribute set via setAttribute is not returned when queried with getAttribute.
Created attachment 9747 [details] Test Case
This works with stock 10.4.7 Safari, regression->P1.
Created attachment 9754 [details] proposed fix
Comment on attachment 9754 [details] proposed fix r=me
Committed revision 15686.