You are here

public function EventStack::doctype in Zircon Profile 8.0

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

A doctype declaration.

Parameters

string $name: The name of the root element.

int $idType: One of DOCTYPE_NONE, DOCTYPE_PUBLIC, or DOCTYPE_SYSTEM.

string $id: The identifier. For DOCTYPE_PUBLIC, this is the public ID. If DOCTYPE_SYSTEM, then this is a system ID.

boolean $quirks: Indicates whether the builder should enter quirks mode.

Overrides EventHandler::doctype

File

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

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 doctype($name, $type = 0, $id = null, $quirks = false) {
  $args = array(
    $name,
    $type,
    $id,
    $quirks,
  );
  $this
    ->store('doctype', $args);
}