rem: var canPaste = this.mPanel.panelset.clipboardFlavor == "inspector/dom-node"; if (canPaste) { var node = this.mPanel.panelset.getClipboardData(); canPaste = node ? node.nodeType != Node.ATTRIBUTE_NODE : false; } return canPaste; 
add: case "cmdEditPasteBefore": return this.isValidChild(parentNode, clipboardNode); case "cmdEditPasteReplace": return this.isValidChild(parentNode, clipboardNode, selectedNode); case "cmdEditPasteFirstChild": case "cmdEditPasteLastChild": return this.isValidChild(selectedNode, clipboardNode); case "cmdEditPasteAsParent": return this.isValidChild(clipboardNode, selectedNode) && this.isValidChild(parentNode, clipboardNode, selectedNode); 
context:   isCommandEnabled: function(aCommand)  {    switch (aCommand) {      case "cmdEditPaste":        var canPaste = this.mPanel.panelset.clipboardFlavor == "inspector/dom-node";        if (canPaste) {          var node = this.mPanel.panelset.getClipboardData();          canPaste = node ? node.nodeType != Node.ATTRIBUTE_NODE : false;        }        return canPaste;      case "cmdEditInsert":        return false;      case "cmdEditCut":      case "cmdEditCopy":      case "cmdEditDelete":        return this.selectedNode != null;    }    return false;  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1bdedd18e398f941e1efe6c0448264ea16e357a1/dom.js/buggy/extensions/inspector/resources/content/viewers/dom/dom.js