rem: item.id = getNodeValue(itemNode.getElementsByTagName("id")[0]); item.description = getNodeValue(itemNode.getElementsByTagName("summary")[0]); item.title = getNodeValue(itemNode.getElementsByTagName("title")[0]) 
add: item.id = getNodeValue(this.childrenByTagNameNS(itemNode, ATOM_03_NS, "id")[0]); item.description = getNodeValue(this.childrenByTagNameNS(itemNode, ATOM_03_NS, "summary")[0]); item.title = getNodeValue(this.childrenByTagNameNS(itemNode, ATOM_03_NS, "title")[0]) 
context:   parseAsAtom: function(aFeed, aDOM)   {    var parsedItems = new Array();    // Get the first channel (assuming there is only one per Atom File).    var channel = aDOM.getElementsByTagName("feed")[0];    if (!channel)    {      aFeed.onParseError(aFeed);      return parsedItems;    }    aFeed.title = aFeed.title || this.stripTags(getNodeValue(channel.getElementsByTagName("title")[0]));    aFeed.description = getNodeValue(channel.getElementsByTagName("tagline")[0]);    aFeed.link = this.findAtomLink("alternate",channel.getElementsByTagNameNS(ATOM_03_NS,"link"));    if (!aFeed.parseItems)      return parsedItems;    aFeed.invalidateItems();    var items = aDOM.getElementsByTagName("entry");    debug("Items to parse: " + items.length);      for (var i=0; i < items.length; i++)     {      var itemNode = items[i];      var item = new FeedItem();      item.feed = aFeed;      item.characterSet = "UTF-8";      var url;      url = this.findAtomLink("alternate",itemNode.getElementsByTagNameNS(ATOM_03_NS,"link"));      item.url = url;      item.id = getNodeValue(itemNode.getElementsByTagName("id")[0]);      item.description = getNodeValue(itemNode.getElementsByTagName("summary")[0]);      item.title = getNodeValue(itemNode.getElementsByTagName("title")[0])                                || (item.description ? item.description.substr(0, 150) : null)                                || item.title;      var authorEl = itemNode.getElementsByTagName("author")[0]                     || itemNode.getElementsByTagName("contributor")[0]                     || channel.getElementsByTagName("author")[0];      var author = "";      if (authorEl)       {        var name = getNodeValue(authorEl.getElementsByTagName("name")[0]);        var email = getNodeValue(authorEl.getElementsByTagName("email")[0]);        if (name)          author = name + (email ? " <" + email + ">" : "");        else if (email)          author = email;      }            item.author = author || item.author || aFeed.title;      item.date = getNodeValue(itemNode.getElementsByTagName("modified")[0]                               || itemNode.getElementsByTagName("issued")[0]                               || itemNode.getElementsByTagName("created")[0])                               || item.date;      // XXX We should get the xml:base attribute from the content tag as well      // and use it as the base HREF of the message.      // XXX Atom feeds can have multiple content elements; we should differentiate      // between them and pick the best one.      // Some Atom feeds wrap the content in a CTYPE declaration; others use      // a namespace to identify the tags as HTML; and a few are buggy and put      // HTML tags in without declaring their namespace so they look like Atom.      // We deal with the first two but not the third.            var content;      var contentNode = itemNode.getElementsByTagName("content")[0];      if (contentNode)       {        content = "";        for (var j=0; j < contentNode.childNodes.length; j++)         {          var node = contentNode.childNodes.item(j);          if (node.nodeType == node.CDATA_SECTION_NODE)            content += node.data;          else            content += serializer.serializeToString(node);        }              if (contentNode.getAttribute('mode') == "escaped")         {          content = content.replace(/&lt;/g, "<");          content = content.replace(/&gt;/g, ">");          content = content.replace(/&amp;/g, "&");        }              if (content == "")          content = null;      }            item.content = content;      parsedItems[i] = item;    }    return parsedItems;  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a0ff1222603c706d922cf197ce921ded3a8286d2/feed-parser.js/buggy/mail/extensions/newsblog/content/feed-parser.js