From 662e182b20eb9892aed6949615e4fc0e7c452b32 Mon Sep 17 00:00:00 2001 From: "caillon%returnzero.com" Date: Sun, 31 Mar 2002 02:13:19 +0000 Subject: [PATCH] Bug 133842: Accesskey 'B' was incorrectly applied to every item in the View > Use Style menu. Patch by fantasai@escape.com, r=jag, sr=alecf, a=asa. --- xpfe/browser/resources/content/navigator.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xpfe/browser/resources/content/navigator.js b/xpfe/browser/resources/content/navigator.js index 14d093669a2..fd437f393df 100644 --- a/xpfe/browser/resources/content/navigator.js +++ b/xpfe/browser/resources/content/navigator.js @@ -1314,7 +1314,8 @@ function stylesheetFillPopup(menuPopup) lastWithSameTitle = currentStyleSheets[currentStyleSheet.title]; if (!lastWithSameTitle) { - var menuItem = itemNoOptStyles.cloneNode(false); + var menuItem = document.createElement("menuitem"); + menuItem.setAttribute("type", "radio"); menuItem.setAttribute("label", currentStyleSheet.title); menuItem.setAttribute("data", currentStyleSheet.title); menuItem.setAttribute("checked", !currentStyleSheet.disabled);