3 namespace RemexHtml\TreeBuilder;
4 use RemexHtml\Tokenizer\Attributes;
7 * The "after after frameset" insertion mode.
9 class AfterAfterFrameset extends InsertionMode {
10 public function characters( $text, $start, $length, $sourceStart, $sourceLength ) {
11 $this->handleFramesetWhitespace( true, $text, $start, $length, $sourceStart, $sourceLength );
14 public function startTag( $name, Attributes $attrs, $selfClose, $sourceStart, $sourceLength ) {
15 $builder = $this->builder;
16 $stack = $builder->stack;
17 $dispatcher = $this->dispatcher;
21 $dispatcher->inBody->startTag( $name, $attrs, $selfClose,
22 $sourceStart, $sourceLength );
26 $dispatcher->inHead->startTag( $name, $attrs, $selfClose,
27 $sourceStart, $sourceLength );
31 $builder->error( "unexpected start tag after after frameset", $sourceStart );
35 public function endTag( $name, $sourceStart, $sourceLength ) {
36 $this->builder->error( "unexpected end tag after after frameset", $sourceStart );
39 public function endDocument( $pos ) {
40 $this->builder->stopParsing( $pos );
43 public function comment( $text, $sourceStart, $sourceLength ) {
44 $this->builder->comment( [ TreeBuilder::ROOT, null ], $text, $sourceStart, $sourceLength );