MCPcopy Create free account
hub / github.com/apache/trafficserver / _handleHtmlComment

Method _handleHtmlComment

plugins/esi/lib/EsiProcessor.cc:613–627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611}
612
613bool
614EsiProcessor::_handleHtmlComment(const DocNodeList::iterator &curr_node)
615{
616 DocNodeList inner_nodes;
617 if (!_parser.parse(inner_nodes, curr_node->data, curr_node->data_len)) {
618 TSError("[%s] Couldn't parse html comment node content", __FUNCTION__);
619 Stats::increment(Stats::N_PARSE_ERRS);
620 return false;
621 }
622 DBG("[%s] parsed %d inner nodes from html comment node", __FUNCTION__, int(inner_nodes.size()));
623 DocNodeList::iterator next_node = curr_node;
624 ++next_node;
625 _node_list.splice(next_node, inner_nodes); // insert after curr node for pre-processing
626 return true;
627}
628
629bool
630EsiProcessor::_preprocess(DocNodeList &node_list, int &n_prescanned_nodes)

Callers

nothing calls this directly

Calls 4

incrementFunction · 0.85
TSErrorFunction · 0.50
parseMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected