Fix for bug 844136 (Really convert HTMLLegendElement to WebIDL). r=bz.

--HG--
extra : rebase_source : df3560b808dba2603768b160c9c21ff242726898