namespace fixes

This commit is contained in:
brade%netscape.com 2000-05-16 14:43:04 +00:00
parent d6bf64b07f
commit 64923492d2
3 changed files with 8 additions and 8 deletions

View File

@ -195,7 +195,7 @@ function OpenEditNode()
dump("gEditNode removed.\n");
// create the html:input node
htmlInput = document.createElement("html:input");
htmlInput = document.createElementNS("http://www.w3.org/TR/REC-html40", "html:input");
htmlInput.setAttribute("value", name);
htmlInput.setAttribute("onkeypress", "return EditNodeKeyPress(event)");
@ -363,7 +363,7 @@ function fillContextMenu(name)
popupNode.removeChild(menuNode);
// create a new menu node
menuNode = document.createElement("menu");
menuNode = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menu");
popupNode.appendChild(menuNode);
var treeNode = document.getElementById("bookmarksTree");
@ -456,7 +456,7 @@ function fillContextMenu(name)
dump("Command #" + cmdIndex + ": id='" + cmdResource.Value + "' name='" + cmdName + "'\n\n");
var menuItem = document.createElement("menuitem");
var menuItem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem");
menuItem.setAttribute("value", cmdName);
menuItem.setAttribute("onaction", "return doContextCmd('" + cmdResource.Value + "');");

View File

@ -36,7 +36,7 @@ function fillContextMenu(name,node)
popupNode.removeChild(menuNode);
// create a new menu node
menuNode = document.createElement("menu");
menuNode = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menu");
popupNode.appendChild(menuNode);
switch(ext) {
@ -99,7 +99,7 @@ function GetFileURL(node)
function isImageFile(parent,url)
{
// note: deleted all the doContextCmd stuff from bookmarks.
var menuItem = document.createElement("menuitem");
var menuItem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem");
menuItem.setAttribute("value","Insert Image");
// menuItem.setAttribute("onaction","AutoInsertImage(\'" + url + "\')");
parent.appendChild(menuItem);

View File

@ -223,7 +223,7 @@ function OpenEditNode()
dump("gEditNode removed.\n");
// create the html:input node
htmlInput = document.createElement("html:input");
htmlInput = document.createElementNS("http://www.w3.org/TR/REC-html40", "html:input");
htmlInput.setAttribute("value", name);
htmlInput.setAttribute("onkeypress", "return EditNodeKeyPress(event)");
@ -394,14 +394,14 @@ function fillContextMenu(name,node)
popupNode.removeChild(menuNode);
// create a new menu node
menuNode = document.createElement("menu");
menuNode = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menu");
popupNode.appendChild(menuNode);
dump("mwa");
if(ext == "gif")
{
// note: deleted all the doContextCmd stuff from bookmarks.
menuItem = document.createElement("menuitem");
menuItem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem");
menuItem.setAttribute("value","Insert Image");
// menuItem.setAttribute("onaction","AutoInsertImage(\'" + url + "\')");
parent.appendChild(menuItem);