function verifyRequiredValues(node, emit, isAdInline) {
  if (!node || !node.nodeName) {
    return;
  }

  if (node.nodeName === 'InLine') {
    isAdInline = true;
  }

  verifyRequiredAttributes(node, emit);

  if (hasSubElements(node)) {
    verifyRequiredSubElements(node, emit, isAdInline);

    for (var i = 0; i < node.children.length; i++) {
      verifyRequiredValues(node.children[i], emit, isAdInline);
    }
  } else if (parserUtils.parseNodeText(node).length === 0) {
    emitMissingValueWarning({
      name: node.nodeName,
      parentName: node.parentNode.nodeName
    }, emit);
  }
}
/**
 * Verify node required values and also verify recursively all his child nodes.
 * Trigger warnings if a node required value is missing.
 * @param  {Node} node - The node element.
 * @param  {Function} emit - Emit function used to trigger Warning event.
 * @emits  VASTParser#VAST-warning
 * @param  {undefined|Boolean} [isAdInline] - Passed recursively to itself. True if the node is contained inside a inLine tag.
 */
Verify node required values and also verify recursively all his child nodes.
Trigger warnings if a node required value is missing.
@param  {Node} node - The node element.
@param  {Function} emit - Emit function used to trigger Warning event.
@emits  VASTParser#VAST-warning
@param  {undefined|Boolean} [isAdInline] - Passed recursively to itself. True if the node is contained inside a inLine tag.
Verify node required values and also verify recursively all his child nodes . Trigger warnings if a node required value is missing . @param { Node } node - The node element . @param { Function } emit - Emit function used to trigger Warning event . @emits VASTParser#VAST - warning @param { undefined|Boolean } [ isAdInline ] - Passed recursively to itself . True if the node is contained inside a inLine tag .
function verifyRequiredValues(node, emit, isAdInline) {
  if (!node || !node.nodeName) {
    return;
  }
  if (node.nodeName === 'InLine') {
    isAdInline = true;
  }
  verifyRequiredAttributes(node, emit);
  if (hasSubElements(node)) {
    verifyRequiredSubElements(node, emit, isAdInline);
    for (var i = 0; i < node.children.length; i++) {
      verifyRequiredValues(node.children[i], emit, isAdInline);
    }
  } else if (parserUtils.parseNodeText(node).length === 0) {
    emitMissingValueWarning({
      name: node.nodeName,
      parentName: node.parentNode.nodeName
    }, emit);
  }
}
function verifyRequiredValues ( node , emit , isAdInline ) { if ( ! node || ! node . nodeName ) { return ; } if ( node . nodeName === 'InLine' ) { isAdInline = true ; } verifyRequiredAttributes ( node , emit ) ; if ( hasSubElements ( node ) ) { verifyRequiredSubElements ( node , emit , isAdInline ) ; for ( var i = 0 ; i < node . children . length ; i ++ ) { verifyRequiredValues ( node . children [ i ] , emit , isAdInline ) ; } } else if ( parserUtils . parseNodeText ( node ) . length === 0 ) { emitMissingValueWarning ( { name : node . nodeName , parentName : node . parentNode . nodeName } , emit ) ; } }
Verify node required values and also verify recursively all his child nodes.
Verify node required values and also verify recursively all his child nodes .