As discussed on irc, it seems cleaner to declare [has, add, remove]StyleClass() as functions on Element.prototype rather than having them take an element as an argument.
Created attachment 11022 [details] Makes the change described in the bug May be worth waiting for vladinecko's file browser patch, since this will likely be easier to update.
Comment on attachment 11022 [details] Makes the change described in the bug Looks good!
Landed in r16985.
Closing since Drosera has been replaced by the new Web Inspector debugger. Moving to the New Bugs component so the Drosera component can be closed and removed.