lib/parser.js
function parseComments (node, nodeType, feedType) {
  var comments = utils.get(node.comments);

  if (!comments && feedType === 'atom') {
    utils.parse(node.link, function (link) {
      var linkAttr = link['@'];

      if (linkAttr && linkAttr.rel === 'replies' && linkAttr.href) {
        comments = linkAttr.href;
        //if comments are text/html then break out of loop
        if (linkAttr.type === 'text/html') {
          return true;
        }
      }
    }, this, true);
  }

  return comments;
}
function parseComments (node, nodeType, feedType) {
  var comments = utils.get(node.comments);

  if (!comments && feedType === 'atom') {
    utils.parse(node.link, function (link) {
      var linkAttr = link['@'];

      if (linkAttr && linkAttr.rel === 'replies' && linkAttr.href) {
        comments = linkAttr.href;
        //if comments are text/html then break out of loop
        if (linkAttr.type === 'text/html') {
          return true;
        }
      }
    }, this, true);
  }

  return comments;
}
function parseComments ( node , nodeType , feedType ) { var comments = utils . get ( node . comments ) ; if ( ! comments && feedType === 'atom' ) { utils . parse ( node . link , function ( link ) { var linkAttr = link [ '@' ] ; if ( linkAttr && linkAttr . rel === 'replies' && linkAttr . href ) { comments = linkAttr . href ; //if comments are text/html then break out of loop if ( linkAttr . type === 'text/html' ) { return true ; } } } , this , true ) ; } return comments ; }
Parses comments for item nodes

- comments
- highest priority for RSS and ATOM feeds
- link (rel=replies)
- fallback for comments sometimes found in ATOM feeds

@param node
@param nodeType
@param feedType
@returns {*}
Parses comments for item nodes