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: var flavor = this.mPanel.panelset.clipboardFlavor; return (flavor == "inspector/dom-attribute" || flavor == "inspector/dom-attributes"); 
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 true;      case "cmdEditCut":      case "cmdEditCopy":      case "cmdEditEdit":      case "cmdEditDelete":        return this.selectedAttribute != null;      case "cmdEditNodeValue":        // this function can be fired before the subject is set        if (this.subject) {          // something with a useful nodeValue          if (this.subject.nodeType == Node.TEXT_NODE ||              this.subject.nodeType == Node.CDATA_SECTION_NODE ||              this.subject.nodeType == Node.COMMENT_NODE ||              this.subject.nodeType == Node.PROCESSING_INSTRUCTION_NODE) {            // did something change?            return this.subject.nodeValue !=                    document.getElementById("txbTextNodeValue").value;          }        }        return false;    }    return false;  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9c3cede12a0e2f8ae7bfaea315ecd838036801f8/domNode.js/clean/extensions/inspector/resources/content/viewers/domNode/domNode.js