You are here

protected function EventStack::store 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::store()
9 calls to EventStack::store()
EventStack::cdata in vendor/masterminds/html5/test/HTML5/Parser/EventStack.php
A CDATA section.
EventStack::comment in vendor/masterminds/html5/test/HTML5/Parser/EventStack.php
A comment section (unparsed character data).
EventStack::doctype in vendor/masterminds/html5/test/HTML5/Parser/EventStack.php
A doctype declaration.
EventStack::endTag in vendor/masterminds/html5/test/HTML5/Parser/EventStack.php
An end-tag.
EventStack::eof in vendor/masterminds/html5/test/HTML5/Parser/EventStack.php
Indicates that the document has been entirely processed.

... See full list

File

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

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

protected function store($event, $data = null) {
  $this->stack[] = array(
    'name' => $event,
    'data' => $data,
  );
}