You are here

public function DOMTreeBuilder::setInstructionProcessor in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/src/HTML5/Parser/DOMTreeBuilder.php \Masterminds\HTML5\Parser\DOMTreeBuilder::setInstructionProcessor()

Provide an instruction processor.

This is used for handling Processor Instructions as they are inserted. If omitted, PI's are inserted directly into the DOM tree.

File

vendor/masterminds/html5/src/HTML5/Parser/DOMTreeBuilder.php, line 232

Class

DOMTreeBuilder
Create an HTML5 DOM tree from events.

Namespace

Masterminds\HTML5\Parser

Code

public function setInstructionProcessor(\Masterminds\HTML5\InstructionProcessor $proc) {
  $this->processor = $proc;
}