Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
5 / 5
CRAP
100.00% covered (success)
100.00%
22 / 22
AfterAfterFrameset
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
5 / 5
7
100.00% covered (success)
100.00%
21 / 21
 characters
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
 startTag
100.00% covered (success)
100.00%
1 / 1
3
100.00% covered (success)
100.00%
13 / 13
 endTag
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
 endDocument
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
 comment
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
<?php
namespace Wikimedia\RemexHtml\TreeBuilder;
use Wikimedia\RemexHtml\Tokenizer\Attributes;
/**
 * The "after after frameset" insertion mode.
 */
class AfterAfterFrameset extends InsertionMode {
    public function characters( $text, $start, $length, $sourceStart, $sourceLength ) {
        $this->handleFramesetWhitespace( true, $text, $start, $length, $sourceStart, $sourceLength );
    }
    public function startTag( $name, Attributes $attrs, $selfClose, $sourceStart, $sourceLength ) {
        $builder = $this->builder;
        $dispatcher = $this->dispatcher;
        switch ( $name ) {
        case 'html':
            $dispatcher->inBody->startTag( $name, $attrs, $selfClose,
                $sourceStart, $sourceLength );
            break;
        case 'noframes':
            $dispatcher->inHead->startTag( $name, $attrs, $selfClose,
                $sourceStart, $sourceLength );
            break;
        default:
            $builder->error( "unexpected start tag after after frameset", $sourceStart );
        }
    }
    public function endTag( $name, $sourceStart, $sourceLength ) {
        $this->builder->error( "unexpected end tag after after frameset", $sourceStart );
    }
    public function endDocument( $pos ) {
        $this->builder->stopParsing( $pos );
    }
    public function comment( $text, $sourceStart, $sourceLength ) {
        $this->builder->comment( [ TreeBuilder::ROOT, null ], $text, $sourceStart, $sourceLength );
    }
}
// Retain the old namespace for backwards compatibility.
class_alias( AfterAfterFrameset::class, 'RemexHtml\TreeBuilder\AfterAfterFrameset' );