From 2f99e64b71043890b37a47acd58f5abf6d94b9cc Mon Sep 17 00:00:00 2001 From: "brade%netscape.com" Date: Tue, 16 May 2000 14:44:35 +0000 Subject: [PATCH] fix namespace git-svn-id: svn://10.0.0.236/trunk@70055 18797224-902f-48f8-a5cc-f745e15eee43 --- .../editor/ui/dialogs/content/EdAdvancedEdit.js | 10 +++++----- .../editor/ui/dialogs/content/EdDialogCommon.js | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/mozilla/editor/ui/dialogs/content/EdAdvancedEdit.js b/mozilla/editor/ui/dialogs/content/EdAdvancedEdit.js index c1f194c1464..76d56e5fa01 100644 --- a/mozilla/editor/ui/dialogs/content/EdAdvancedEdit.js +++ b/mozilla/editor/ui/dialogs/content/EdAdvancedEdit.js @@ -270,9 +270,9 @@ function AddTreeItem ( name, value, treekids, attArray, valueCaseFunc ) { attArray[attArray.length] = name; var treekids = document.getElementById ( treekids ); - var treeitem = document.createElement ( "treeitem" ); - var treerow = document.createElement ( "treerow" ); - var attrcell = document.createElement ( "treecell" ); + var treeitem = document.createElementNS ( "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treeitem" ); + var treerow = document.createElementNS ( "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treerow" ); + var attrcell = document.createElementNS ( "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treecell" ); attrcell.setAttribute( "class", "propertylist" ); attrcell.setAttribute( "value", name.toLowerCase() ); treerow.appendChild ( attrcell ); @@ -293,10 +293,10 @@ function AddTreeItem ( name, value, treekids, attArray, valueCaseFunc ) // optional parameters for initial values. function CreateCellWithField( name, value ) { - var valcell = document.createElement ( "treecell" ); + var valcell = document.createElementNS ( "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treecell" ); valcell.setAttribute ( "class", "value propertylist" ); valcell.setAttribute ( "allowevents", "true" ); - var valField = document.createElement ( "html:input" ); + var valField = document.createElementNS ( "http://www.w3.org/TR/REC-html40", "html:input" ); valField.setAttribute ( "type", "text" ); if ( name ) valField.setAttribute ( "id", name ); if ( value ) valField.setAttribute ( "value", value ); diff --git a/mozilla/editor/ui/dialogs/content/EdDialogCommon.js b/mozilla/editor/ui/dialogs/content/EdDialogCommon.js index 494c5036084..a0aeaa1f495 100644 --- a/mozilla/editor/ui/dialogs/content/EdDialogCommon.js +++ b/mozilla/editor/ui/dialogs/content/EdDialogCommon.js @@ -347,7 +347,7 @@ function AppendStringToMenulist(menulist, string) // May not have any popup yet -- so create one if (!menupopup) { - menupopup = document.createElement("menupopup"); + menupopup = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menupopup"); if (menupopup) menulist.appendChild(menupopup); else @@ -356,7 +356,7 @@ function AppendStringToMenulist(menulist, string) return null; } } - menuItem = document.createElement("menuitem"); + menuItem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem"); if (menuItem) { menuItem.setAttribute("value", string); @@ -375,7 +375,7 @@ function AppendValueAndDataToMenulist(menulist, valueStr, dataStr) // May not have any popup yet -- so create one if (!menupopup) { - menupopup = document.createElement("menupopup"); + menupopup = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menupopup"); if (menupopup) menulist.appendChild(menupopup); else @@ -384,7 +384,7 @@ function AppendValueAndDataToMenulist(menulist, valueStr, dataStr) return null; } } - menuItem = document.createElement("menuitem"); + menuItem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem"); if (menuItem) { menuItem.setAttribute("value", valueStr); @@ -429,7 +429,7 @@ function AppendStringToTreelist(tree, string) var treechildren = tree.firstChild; if (!treechildren) { - treechildren = document.createElement("treechildren"); + treechildren = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treechildren"); if (treechildren) tree.appendChild(treechildren); else @@ -438,9 +438,9 @@ function AppendStringToTreelist(tree, string) return null; } } - var treeitem = document.createElement("treeitem"); - var treerow = document.createElement("treerow"); - var treecell = document.createElement("treecell"); + var treeitem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treeitem"); + var treerow = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treerow"); + var treecell = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treecell"); if (treeitem && treerow && treecell) { treerow.appendChild(treecell);