From cf3e2b9168b852b4cdf2c5386cc5a16f49950003 Mon Sep 17 00:00:00 2001 From: River Tarnell Date: Wed, 16 Jan 2008 10:38:54 +0000 Subject: [PATCH] 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 --- skins/common/protect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.20.1