DOMParser ãè¿ãã®ã¯ Document ã§ãnsIDOMParser ã¯ãnsIDocument ã // Document var nodeList = Document.getElementsByTagName("foo"); for(var i=0; i<nodeList.length; i++){ var node = nodeList[i]; var bar = node.getAttribute("bar"); } // nsIDocument var nodeList = nsIDocument.getElementsByTagName("foo"); for(var i=0; i<nodeList.length; i++){ var node = nodeList.item(i) .QueryInterface(Components.interfaces.nsID
{{#tags}}- {{label}}
{{/tags}}