Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
InsertionMode
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5namespace Phpdftk\Html\TreeConstruction;
6
7/**
8 * Tree-construction insertion modes per WHATWG HTML ยง13.2.6.
9 *
10 * The full enum is declared even though Phase 1B.3 implements only the
11 * subset needed for typical flow content. Unimplemented modes throw a
12 * structured exception so it's clear which spec scenario hasn't landed yet.
13 */
14enum InsertionMode
15{
16    case Initial;
17    case BeforeHtml;
18    case BeforeHead;
19    case InHead;
20    case InHeadNoscript;
21    case AfterHead;
22    case InBody;
23    case Text;
24    case InTable;
25    case InTableText;
26    case InCaption;
27    case InColumnGroup;
28    case InTableBody;
29    case InRow;
30    case InCell;
31    case InSelect;
32    case InSelectInTable;
33    case InTemplate;
34    case AfterBody;
35    case InFrameset;
36    case AfterFrameset;
37    case AfterAfterBody;
38    case AfterAfterFrameset;
39}