Clickable <label>s in Safari

Today while testing the latest release of our CMS system, I noticed that Safari doesn’t actually do anything interesting with its <label> tags. Firefox and other right-thinking browsers allow one to click on a label and to activate the corresponding form element.
Fortunately, with a little Javascript-Fu, we can add this behavior for Safari as well. [...]