From: River Tarnell Date: Wed, 16 Jan 2008 10:38:54 +0000 (+0000) Subject: use label.htmlFor=... instead of label.setAttribute('for', ...): the former works... X-Git-Tag: 1.31.0-rc.0~49962 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=cf3e2b9168b852b4cdf2c5386cc5a16f49950003;p=lhc%2Fweb%2Fwiklou.git use label.htmlFor=... instead of label.setAttribute('for', ...): the former works in IE7, Firefox, Safari and Opera, while the latter does not work in IE7 --- diff --git a/skins/common/protect.js b/skins/common/protect.js index 4cf3d79280..863b95bd80 100644 --- a/skins/common/protect.js +++ b/skins/common/protect.js @@ -30,7 +30,7 @@ function protectInitialize( tableId, labelText, types ) { col.appendChild( document.createTextNode( ' ' ) ); var label = document.createElement( 'label' ); - label.setAttribute( 'for', 'mwProtectUnchained' ); + label.htmlFor = 'mwProtectUnchained'; label.appendChild( document.createTextNode( labelText ) ); col.appendChild( label );