3416 |
## NOTE: Strictly spaking, the line below only applies to MathML and |
## NOTE: Strictly spaking, the line below only applies to MathML and |
3417 |
## SVG elements. Currently the HTML syntax supports only MathML and |
## SVG elements. Currently the HTML syntax supports only MathML and |
3418 |
## SVG elements as foreigners. |
## SVG elements as foreigners. |
3419 |
$new_mode = $self->{insertion_mode} | IN_FOREIGN_CONTENT_IM; |
$new_mode = IN_BODY_IM | IN_FOREIGN_CONTENT_IM; |
|
## ISSUE: What is set as the secondary insertion mode? |
|
3420 |
} elsif ($node->[1] & TABLE_CELL_EL) { |
} elsif ($node->[1] & TABLE_CELL_EL) { |
3421 |
if ($last) { |
if ($last) { |
3422 |
!!!cp ('t28.2'); |
!!!cp ('t28.2'); |
4361 |
pop @{$self->{open_elements}} # <head> |
pop @{$self->{open_elements}} # <head> |
4362 |
if $self->{insertion_mode} == AFTER_HEAD_IM; |
if $self->{insertion_mode} == AFTER_HEAD_IM; |
4363 |
next B; |
next B; |
4364 |
} elsif ($token->{tag_name} eq 'style') { |
} elsif ($token->{tag_name} eq 'style' or |
4365 |
|
$token->{tag_name} eq 'noframes') { |
4366 |
## NOTE: Or (scripting is enabled and tag_name eq 'noscript' and |
## NOTE: Or (scripting is enabled and tag_name eq 'noscript' and |
4367 |
## insertion mode IN_HEAD_IM) |
## insertion mode IN_HEAD_IM) |
4368 |
## NOTE: There is a "as if in head" code clone. |
## NOTE: There is a "as if in head" code clone. |
6233 |
next B; |
next B; |
6234 |
} elsif ($token->{tag_name} eq 'noframes') { |
} elsif ($token->{tag_name} eq 'noframes') { |
6235 |
!!!cp ('t320'); |
!!!cp ('t320'); |
6236 |
## NOTE: As if in body. |
## NOTE: As if in head. |
6237 |
$parse_rcdata->(CDATA_CONTENT_MODEL); |
$parse_rcdata->(CDATA_CONTENT_MODEL); |
6238 |
next B; |
next B; |
6239 |
} else { |
} else { |
6676 |
xmp => 1, |
xmp => 1, |
6677 |
iframe => 1, |
iframe => 1, |
6678 |
noembed => 1, |
noembed => 1, |
6679 |
noframes => 1, |
noframes => 1, ## NOTE: This is an "as if in head" code clone. |
6680 |
noscript => 0, ## TODO: 1 if scripting is enabled |
noscript => 0, ## TODO: 1 if scripting is enabled |
6681 |
}->{$token->{tag_name}}) { |
}->{$token->{tag_name}}) { |
6682 |
if ($token->{tag_name} eq 'xmp') { |
if ($token->{tag_name} eq 'xmp') { |