2987 |
redo A; |
redo A; |
2988 |
} elsif ($self->{nc} == -1) { |
} elsif ($self->{nc} == -1) { |
2989 |
!!!cp (220); |
!!!cp (220); |
|
!!!parse-error (type => 'unclosed DOCTYPE'); |
|
2990 |
$self->{state} = DATA_STATE; |
$self->{state} = DATA_STATE; |
2991 |
## reconsume |
## reconsume |
2992 |
|
|
4168 |
!!!cp ('t59'); |
!!!cp ('t59'); |
4169 |
$furthest_block = $node; |
$furthest_block = $node; |
4170 |
$furthest_block_i_in_open = $_; |
$furthest_block_i_in_open = $_; |
4171 |
|
## NOTE: The topmost (eldest) node. |
4172 |
} elsif ($node->[0] eq $formatting_element->[0]) { |
} elsif ($node->[0] eq $formatting_element->[0]) { |
4173 |
!!!cp ('t60'); |
!!!cp ('t60'); |
4174 |
last OE; |
last OE; |
4315 |
$i = $_; |
$i = $_; |
4316 |
} |
} |
4317 |
} # OE |
} # OE |
4318 |
splice @{$self->{open_elements}}, $i + 1, 1, $clone; |
splice @{$self->{open_elements}}, $i + 1, 0, $clone; |
4319 |
|
|
4320 |
## Step 14 |
## Step 14 |
4321 |
redo FET; |
redo FET; |
5029 |
} elsif ({ |
} elsif ({ |
5030 |
body => 1, html => 1, |
body => 1, html => 1, |
5031 |
}->{$token->{tag_name}}) { |
}->{$token->{tag_name}}) { |
5032 |
if ($self->{insertion_mode} == BEFORE_HEAD_IM or |
## TODO: This branch is entirely redundant. |
5033 |
|
if ($self->{insertion_mode} == BEFORE_HEAD_IM or |
5034 |
$self->{insertion_mode} == IN_HEAD_IM or |
$self->{insertion_mode} == IN_HEAD_IM or |
5035 |
$self->{insertion_mode} == IN_HEAD_NOSCRIPT_IM) { |
$self->{insertion_mode} == IN_HEAD_NOSCRIPT_IM) { |
5036 |
!!!cp ('t140'); |
!!!cp ('t140'); |