| 611 | } |
| 612 | |
| 613 | bool |
| 614 | EsiProcessor::_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 | |
| 629 | bool |
| 630 | EsiProcessor::_preprocess(DocNodeList &node_list, int &n_prescanned_nodes) |