Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| EndTagToken | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Phpdftk\Html\Tokenizer; |
| 6 | |
| 7 | final class EndTagToken extends Token |
| 8 | { |
| 9 | public string $tagName = ''; |
| 10 | public bool $selfClosing = false; // per WHATWG, end tags may also set this; it's a parse error but recorded |
| 11 | |
| 12 | /** @var list<array{name: string, value: string}> */ |
| 13 | public array $attributes = []; // attributes on end tags are parse errors, but tokenized |
| 14 | |
| 15 | public ?int $currentAttribute = null; |
| 16 | } |