You are here

public function EventStack::text in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/test/HTML5/Parser/EventStack.php \Masterminds\HTML5\Tests\Parser\EventStack::text()

A unit of parsed character data.

Entities in this text are *already decoded*.

Overrides EventHandler::text

File

vendor/masterminds/html5/test/HTML5/Parser/EventStack.php, line 92

Class

EventStack
This testing class gathers events from a parser and builds a stack of events. It is useful for checking the output of a tokenizer.

Namespace

Masterminds\HTML5\Tests\Parser

Code

public function text($cdata) {

  // fprintf(STDOUT, "Received TEXT event with: " . $cdata);
  $this
    ->store('text', array(
    $cdata,
  ));
}