blib/lib/HTML/HTML5/Parser/TagSoupParser.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 295 | 473 | 62.3 |
line | l | !l | condition |
---|---|---|---|
1495 | 0 | 86 | $self->{'insertion_mode'} = $new_mode and last LOOP |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
44 | 580 | 155 | 524 | defined $element->lastChild and $element->lastChild->nodeType == 3 |
56 | 0 | 7 | 680 | $parser and defined $token->{'line'} |
58 | 0 | 7 | 680 | $parser and defined $token->{'column'} |
83 | 0 | 0 | 20019 | &blessed($object) and $object->isa('XML::LibXML::Node') |
684 | 0 | 3 | 2 | defined $self->{'input_encoding'} and $self->{'input_encoding'} eq $charset_name |
694 | 0 | 3 | 0 | defined $self->{'input_encoding'} and 'HTML::HTML5::Parser::Charset::Info'->get_by_html_name($self->{'input_encoding'})->{'category'} & HTML::HTML5::Parser::Charset::Info::CHARSET_CATEGORY_UTF16() |
761 | 0 | 0 | 3 | &blessed($_) and $_->isa('HTML::HTML5::Parser::TagSoupParser::RestartParser') |
876 | 0 | 0 | 0 | $input->read($next, 1) and $next ne "\n" |
1110 | 4 | 0 | 5 | defined $xsysid and !defined($token->{'sysid'}) || $token->{'sysid'} eq $xsysid |
2134 | 0 | 4861 | 355 | @{$self->{'open_elements'};} && $self->{'open_elements'}[-1][1] & 2048 |
308 | 41 | 6 | $self->{'open_elements'}[-1][1] == 334848 and $token->{'type'} == 3 && $token->{'tag_name'} ne 'mglyph' && $token->{'tag_name'} ne 'malignmark' || $token->{'type'} == 6 | |
0 | 160 | 173 | $self->{'open_elements'}[-1][1] & 333825 and $token->{'type'} == 3 | |
160 | 166 | 7 | $self->{'open_elements'}[-1][1] & 333825 and $token->{'type'} == 3 and $token->{'tag_name'} eq 'svg' | |
286 | 35 | 5 | $self->{'open_elements'}[-1][1] == 338944 and $token->{'type'} == 3 || $token->{'type'} == 6 | |
284 | 5 | 7 | $self->{'open_elements'}[-1][1] == 333825 and $token->{'type'} == 3 || $token->{'type'} == 6 | |
5 | 3 | 4 | $self->{'open_elements'}[-1][1] == 333825 and $token->{'type'} == 3 || $token->{'type'} == 6 and do { my $encoding = $self->{'open_elements'}[-1][0]->getAttributeNS(undef, 'encoding') || ''; $encoding =~ tr/A-Z/a-z/; if ($encoding eq 'text/html' or $encoding eq 'application/xhtml+xml') { 1; } else { 0; } } | |
2188 | 124 | 0 | 0 | $token->{'tag_name'} eq 'font' and $token->{'attributes'}{'color'} || $token->{'attributes'}{'face'} || $token->{'attributes'}{'size'} |
2214 | 3 | 0 | 0 | $current_node->[1] == 333825 and do { my $encoding = $current_node->[0]->getAttributeNS(undef, 'encoding') || ''; $encoding =~ tr/A-Z/a-z/; $encoding eq 'application/xhtml+xml' unless $encoding eq 'text/html' } |
2300 | 0 | 6 | 1 | $nsuri eq 'http://www.w3.org/1998/Math/MathML' and $attr_name eq 'definitionurl' |
2345 | 124 | 0 | 0 | $token->{'attributes'}{'xmlns'} and $token->{'attributes'}{'xmlns'}{'value'} ne $nsuri |
2349 | 124 | 0 | 0 | $token->{'attributes'}{'xmlns:xlink'} and $token->{'attributes'}{'xmlns:xlink'}{'value'} ne 'http://www.w3.org/1999/xlink' |
2370 | 102 | 0 | 1 | $token->{'tag_name'} eq 'script' and $self->{'open_elements'}[-1][1] == 10245 |
2444 | 4436 | 20 | 504 | $self->{'insertion_mode'} & 64 and not $self->{'insertion_mode'} & 4096 |
2521 | 2903 | 1942 | 9 | $token->{'type'} == 3 and $token->{'tag_name'} eq 'html' |
2650 | 4232 | 57 | 3 | $self->{'insertion_mode'} == 8 and ($token->{'tag_name'} || '') eq 'object' |
4289 | 2 | 1 | $self->{'insertion_mode'} == 8 and ($token->{'tag_name'} || '') eq 'object' and $token->{'type'} == 4 | |
59 | 0 | 1 | $self->{'insertion_mode'} == 8 and ($token->{'tag_name'} || '') eq 'object' and $token->{'type'} == 4 and $self->_data($self->{'document'}, 'isHTML4') | |
2808 | 0 | 354 | 4 | $self->{'insertion_mode'} == 8 and $token->{'tag_name'} =~ /^(object|param)$/ |
354 | 3 | 1 | $self->{'insertion_mode'} == 8 and $token->{'tag_name'} =~ /^(object|param)$/ and $self->_data($self->{'document'}, 'isHTML4') | |
2987 | 1 | 1 | 0 | $token->{'attributes'}{'content'} and $token->{'attributes'}{'http-equiv'} |
3000 | 0 | 0 | 1 | $token->{'attributes'}{'http-equiv'}{'value'} =~ /\A[Cc][Oo][Nn][Tt][Ee][Nn][Tt]-[Tt][Yy][Pp][Ee]\z/ and $token->{'attributes'}{'content'}{'value'} =~ /[Cc][Hh][Aa][Rr][Ss][Ee][Tt] [\x09\x0A\x0C\x0D\x20]*= [\x09\x0A\x0C\x0D\x20]*(?>"([^"]*)"|'([^']*)'| ([^"'\x09\x0A\x0C\x0D\x20] [^\x09\x0A\x0C\x0D\x20\x3B]*))/x |
3533 | 459 | 9 | 237 | $self->{'frameset_ok'} and $token->{'data'} =~ /[^\x09\x0A\x0C\x0D\x20]/ |
3640 | 343 | 5 | 11 | {'table', 1, 'tbody', 1, 'tfoot', 1, 'thead', 1, 'tr', 1}->{$token->{'tag_name'}} and ($self->{'insertion_mode'} & 2047) == 49 |
344 | 1 | 3 | $token->{'tag_name'} eq 'table' and ($self->{'insertion_mode'} & 2047) == 50 | |
287 | 1 | 0 | {'tbody', 1, 'tfoot', 1, 'thead', 1, 'tr', 1}->{$token->{'tag_name'}} and ($self->{'insertion_mode'} & 2047) == 50 | |
4401 | 111 | 1 | 14 | $token->{'tag_name'} eq 'tr' and ($self->{'insertion_mode'} & 2047) == 193 |
46 | 3 | 7 | {'tbody', 1, 'tfoot', 1, 'thead', 1}->{$token->{'tag_name'}} and $self->{'insertion_mode'} & 128 | |
4682 | 42 | 0 | 0 | $self->{'open_elements'}[-1][1] == 328593 and @{$self->{'open_elements'};} == 1 |
4773 | 1 | 0 | 0 | $self->{'open_elements'}[-1][1] == 328593 and @{$self->{'open_elements'};} == 1 |
4820 | 10 | 10 | 10 | ($self->{'insertion_mode'} & 2047) == 1026 and {'caption', 1, 'table', 1, 'tbody', 1, 'tfoot', 1, 'thead', 1, 'tr', 1, 'td', 1, 'th', 1}->{$token->{'tag_name'}} |
4999 | 2 | 4 | 3 | ($self->{'insertion_mode'} & 2047) == 1026 and {'caption', 1, 'table', 1, 'tbody', 1, 'tfoot', 1, 'thead', 1, 'tr', 1, 'td', 1, 'th', 1}->{$token->{'tag_name'}} |
5000 | 1 | 2 | 1 | $self->{'open_elements'}[-1][1] == 16394 and $self->{'open_elements'}[-2][1] == 16393 |
5128 | 15 | 0 | 0 | $self->{'open_elements'}[-1][1] == 328593 and @{$self->{'open_elements'};} == 1 |
5271 | 27 | 0 | 1 | $token->{'tag_name'} eq 'frameset' and $self->{'insertion_mode'} == 513 |
19 | 0 | 8 | $token->{'tag_name'} eq 'frame' and $self->{'insertion_mode'} == 513 | |
5360 | 16 | 0 | 14 | $token->{'tag_name'} eq 'frameset' and $self->{'insertion_mode'} == 513 |
6 | 0 | 10 | $token->{'tag_name'} eq 'html' and $self->{'insertion_mode'} == 514 | |
5362 | 14 | 0 | 0 | $self->{'open_elements'}[-1][1] == 328593 and @{$self->{'open_elements'};} == 1 |
5408 | 16 | 0 | 13 | $self->{'open_elements'}[-1][1] == 328593 and @{$self->{'open_elements'};} == 1 |
5499 | 7 | 2 | 0 | $token->{'attributes'}{'content'} and $token->{'attributes'}{'http-equiv'} |
5511 | 0 | 0 | 2 | $token->{'attributes'}{'http-equiv'}{'value'} =~ /\A[Cc][Oo][Nn][Tt][Ee][Nn][Tt]-[Tt][Yy][Pp][Ee]\z/ and $token->{'attributes'}{'content'}{'value'} =~ /[Cc][Hh][Aa][Rr][Ss][Ee][Tt] [\x09\x0A\x0C\x0D\x20]*= [\x09\x0A\x0C\x0D\x20]*(?>"([^"]*)"|'([^']*)'| ([^"'\x09\x0A\x0C\x0D\x20][^\x09\x0A\x0C\x0D\x20\x3B]*)) /x |
5655 | 438 | 16 | 1 | $token->{'tag_name'} eq 'form' and defined $self->{'form_element'} |
5794 | 1 | 3 | 13 | $node->[1] & 131072 || $node->[1] & 65536 and not $node->[1] & 32 |
5906 | 2 | 3 | 13 | $node->[1] & 131072 || $node->[1] & 65536 and not $node->[1] & 32 |
6519 | 0 | 0 | 0 | $token->{'tag_name'} eq 'math' and $attr_name eq 'definitionurl' |
6560 | 106 | 0 | 0 | $token->{'attributes'}{'xmlns'} and $token->{'attributes'}{'xmlns'}{'value'} ne ($token->{'tag_name'} eq 'math' ? 'http://www.w3.org/1998/Math/MathML' : 'http://www.w3.org/2000/svg') |
6564 | 106 | 0 | 0 | $token->{'attributes'}{'xmlns:xlink'} and $token->{'attributes'}{'xmlns:xlink'}{'value'} ne 'http://www.w3.org/1999/xlink' |
6815 | 17 | 1 | 0 | $token->{'tag_name'} eq 'li' and {'ul', 1, 'ol', 1}->{$node->[0]->localname} |
7087 | 23 | 5 | 1 | $self->{'open_elements'}[-1][1] & 8 and $self->{'open_elements'}[-1][0]->localname ne $token->{'tag_name'} |
7249 | 0 | 0 | 0 | 55296 <= $self->{'nc'} and $self->{'nc'} <= 57343 |
7256 | 0 | 0 | 0 | $input->read($next, 1) and $next ne "\n" |
7386 | 0 | 0 | 0 | defined $nsuri and $nsuri eq 'http://www.w3.org/1999/xhtml' |
line | l | !l | condition |
---|---|---|---|
95 | 14823 | 5186 | $self->{'_debug_cache'}{$oaddr} ||= {} |
98 | 10 | 0 | $HTML::HTML5::Parser::TagSoupParser::DATA->{$oaddr} ||= {} |
516 | 708 | 0 | $_[2] || sub { my(%opt) = @_; warn "Parse error ($opt{'type'})\n"; } |
521 | 0 | 708 | $_[3] || sub ($) { return $_[0]; } |
890 | 1111 | 14 | $_[2] || 0 |
926 | 711 | 0 | $_[2] || sub { my(%opt) = @_; my $line = $opt{'token'} ? $opt{'token'}{'line'} : $opt{'line'}; my $column = $opt{'token'} ? $opt{'token'}{'column'} : $opt{'column'}; warn "Parse error ($opt{'type'}) at line $line column $column\n"; } |
1140 | 13 | 379 | $token->{'pubid'} || '' |
8 | 379 | $token->{'sysid'} || '' | |
2157 | 6 | 1 | $self->{'open_elements'}[-1][0]->getAttributeNS(undef, 'encoding') || '' |
2225 | 0 | 0 | $current_node->[0]->getAttributeNS(undef, 'encoding') || '' |
2343 | 70 | 54 | $el_category_f->{$nsuri}{$tag_name} || 0 |
2450 | 4 | 100 | $self->{'pending_chars'} ||= [] |
2650 | 38 | 22 | $token->{'tag_name'} || '' |
2734 | 180 | 0 | $el_category->{'body'} || 0 |
2853 | 0 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
2896 | 2 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
2933 | 0 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
2981 | 7 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
3115 | 0 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
3205 | 119 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
3238 | 1 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
3289 | 357 | 0 | $el_category->{'body'} || 0 |
3416 | 9 | 0 | $el_category->{'body'} || 0 |
3503 | 43 | 0 | $el_category->{'body'} || 0 |
3931 | 58 | 0 | $el_category->{'tbody'} || 0 |
3976 | 50 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
3999 | 20 | 0 | $el_category->{'tr'} || 0 |
4036 | 52 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
4168 | 3 | 0 | $el_category->{'colgroup'} || 0 |
4213 | 26 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
4329 | 6 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
4379 | 3 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
4734 | 3 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
4850 | 15 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
4894 | 5 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
5295 | 1 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
5325 | 8 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
5463 | 10 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
5493 | 9 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
5616 | 10 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
5665 | 48 | 85 | $self->_data($self->{'document'})->{'manakai_compat_mode'} || '' |
5720 | 435 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
5886 | 14 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
5995 | 17 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
6045 | 13 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
6122 | 34 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
6180 | 42 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
6237 | 26 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
6371 | 10 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
6435 | 9 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
6489 | 8 | 0 | $$el_category{$token->{'tag_name'}} || 0 |
6558 | 0 | 106 | $$el_category_f{$token->{'tag_name'} eq 'math' ? 'http://www.w3.org/1998/Math/MathML' : 'http://www.w3.org/2000/svg'}{$token->{'tag_name'}} || 0 |
6617 | 1 | 2 | $$el_category{$token->{'tag_name'}} || 0 |
6662 | 197 | 49 | $$el_category{$token->{'tag_name'}} || 0 |
7167 | 0 | 0 | $_[2] || sub ($) { return $_[0]; } |
7275 | 0 | 0 | $_[2] || 0 |
7314 | 0 | 0 | $onerror || sub { my(%opt) = @_; my $line = $opt{'line'}; my $column = $opt{'column'}; if (defined $opt{'token'} and defined $opt{'token'}{'line'}) { $line = $opt{'token'}{'line'}; $column = $opt{'token'}{'column'}; }; warn "Parse error ($opt{'type'}) at line $line column $column\n"; } |
7333 | 0 | 0 | $node->namespaceURI || '' |
7357 | 0 | 0 | $el_category_f->{$node_ns}{$node_ln} || 10240 |
7361 | 0 | 0 | $el_category_f->{$node_ns}{$node_ln} || 6144 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
674 | 5 | 0 | 0 | $charset->{'category'} & HTML::HTML5::Parser::Charset::Info::CHARSET_CATEGORY_ASCII_COMPAT() or $charset->{'category'} & HTML::HTML5::Parser::Charset::Info::CHARSET_CATEGORY_UTF16() |
1110 | 0 | 5 | 0 | !defined($token->{'sysid'}) || $token->{'sysid'} eq $xsysid |
1140 | 5 | 2 | 385 | ($token->{'pubid'} || '') =~ /html 4/i or ($token->{'sysid'} || '') =~ /html4/i |
1142 | 18 | 8 | 366 | $token->{'quirks'} or $doctype_name ne 'html' |
1212 | 0 | 0 | 9 | $match or $pubid eq '-//W3O//DTD W3 HTML STRICT 3.0//EN//' |
0 | 0 | 9 | $match or $pubid eq '-//W3O//DTD W3 HTML STRICT 3.0//EN//' or $pubid eq '-/W3C/DTD HTML 4.0 TRANSITIONAL/EN' | |
0 | 0 | 9 | $match or $pubid eq '-//W3O//DTD W3 HTML STRICT 3.0//EN//' or $pubid eq '-/W3C/DTD HTML 4.0 TRANSITIONAL/EN' or $pubid eq 'HTML' | |
0 | 0 | 9 | $pubid =~ m[^-//W3C//DTD HTML 4.01 FRAMESET//] or $pubid =~ m[^-//W3C//DTD HTML 4.01 TRANSITIONAL//] | |
1 | 1 | 7 | $pubid =~ m[^-//W3C//DTD XHTML 1.0 FRAMESET//] or $pubid =~ m[^-//W3C//DTD XHTML 1.0 TRANSITIONAL//] | |
2134 | 18 | 4 | 25 | $token->{'type'} == 3 && $token->{'tag_name'} ne 'mglyph' && $token->{'tag_name'} ne 'malignmark' || $token->{'type'} == 6 |
4861 | 6 | 349 | not @{$self->{'open_elements'};} && $self->{'open_elements'}[-1][1] & 2048 or $self->{'open_elements'}[-1][1] == 334848 and $token->{'type'} == 3 && $token->{'tag_name'} ne 'mglyph' && $token->{'tag_name'} ne 'malignmark' || $token->{'type'} == 6 | |
22 | 7 | 326 | not @{$self->{'open_elements'};} && $self->{'open_elements'}[-1][1] & 2048 or $self->{'open_elements'}[-1][1] == 334848 and $token->{'type'} == 3 && $token->{'tag_name'} ne 'mglyph' && $token->{'tag_name'} ne 'malignmark' || $token->{'type'} == 6 or $self->{'open_elements'}[-1][1] & 333825 and $token->{'type'} == 3 and $token->{'tag_name'} eq 'svg' | |
27 | 3 | 10 | $token->{'type'} == 3 || $token->{'type'} == 6 | |
7 | 5 | 321 | not @{$self->{'open_elements'};} && $self->{'open_elements'}[-1][1] & 2048 or $self->{'open_elements'}[-1][1] == 334848 and $token->{'type'} == 3 && $token->{'tag_name'} ne 'mglyph' && $token->{'tag_name'} ne 'malignmark' || $token->{'type'} == 6 or $self->{'open_elements'}[-1][1] & 333825 and $token->{'type'} == 3 and $token->{'tag_name'} eq 'svg' or $self->{'open_elements'}[-1][1] == 338944 and $token->{'type'} == 3 || $token->{'type'} == 6 | |
7 | 0 | 5 | $token->{'type'} == 3 || $token->{'type'} == 6 | |
30 | 4 | 292 | not @{$self->{'open_elements'};} && $self->{'open_elements'}[-1][1] & 2048 or $self->{'open_elements'}[-1][1] == 334848 and $token->{'type'} == 3 && $token->{'tag_name'} ne 'mglyph' && $token->{'tag_name'} ne 'malignmark' || $token->{'type'} == 6 or $self->{'open_elements'}[-1][1] & 333825 and $token->{'type'} == 3 and $token->{'tag_name'} eq 'svg' or $self->{'open_elements'}[-1][1] == 338944 and $token->{'type'} == 3 || $token->{'type'} == 6 or $self->{'open_elements'}[-1][1] == 333825 and $token->{'type'} == 3 || $token->{'type'} == 6 and do { my $encoding = $self->{'open_elements'}[-1][0]->getAttributeNS(undef, 'encoding') || ''; $encoding =~ tr/A-Z/a-z/; if ($encoding eq 'text/html' or $encoding eq 'application/xhtml+xml') { 1; } else { 0; } } | |
4 | 23 | 269 | not @{$self->{'open_elements'};} && $self->{'open_elements'}[-1][1] & 2048 or $self->{'open_elements'}[-1][1] == 334848 and $token->{'type'} == 3 && $token->{'tag_name'} ne 'mglyph' && $token->{'tag_name'} ne 'malignmark' || $token->{'type'} == 6 or $self->{'open_elements'}[-1][1] & 333825 and $token->{'type'} == 3 and $token->{'tag_name'} eq 'svg' or $self->{'open_elements'}[-1][1] == 338944 and $token->{'type'} == 3 || $token->{'type'} == 6 or $self->{'open_elements'}[-1][1] == 333825 and $token->{'type'} == 3 || $token->{'type'} == 6 and do { my $encoding = $self->{'open_elements'}[-1][0]->getAttributeNS(undef, 'encoding') || ''; $encoding =~ tr/A-Z/a-z/; if ($encoding eq 'text/html' or $encoding eq 'application/xhtml+xml') { 1; } else { 0; } } or $token->{'type'} == 5 | |
2159 | 2 | 2 | 3 | $encoding eq 'text/html' or $encoding eq 'application/xhtml+xml' |
2188 | 0 | 0 | 0 | $token->{'attributes'}{'color'} || $token->{'attributes'}{'face'} || $token->{'attributes'}{'size'} |
11 | 0 | 124 | {'b', 1, 'big', 1, 'blockquote', 1, 'body', 1, 'br', 1, 'center', 1, 'code', 1, 'dd', 1, 'div', 1, 'dl', 1, 'dt', 1, 'em', 1, 'embed', 1, 'h1', 1, 'h2', 1, 'h3', 1, 'h4', 1, 'h5', 1, 'h6', 1, 'head', 1, 'hr', 1, 'i', 1, 'img', 1, 'li', 1, 'listing', 1, 'menu', 1, 'meta', 1, 'nobr', 1, 'ol', 1, 'p', 1, 'pre', 1, 'ruby', 1, 's', 1, 'small', 1, 'span', 1, 'strong', 1, 'strike', 1, 'sub', 1, 'sup', 1, 'table', 1, 'tt', 1, 'u', 1, 'ul', 1, 'var', 1}->{$token->{'tag_name'}} or $token->{'tag_name'} eq 'font' and $token->{'attributes'}{'color'} || $token->{'attributes'}{'face'} || $token->{'attributes'}{'size'} | |
2214 | 9 | 0 | 5 | not $current_node->[1] & 2048 or $current_node->[1] == 334848 |
9 | 2 | 3 | not $current_node->[1] & 2048 or $current_node->[1] == 334848 or $current_node->[1] == 338944 | |
2 | 0 | 3 | not $current_node->[1] & 2048 or $current_node->[1] == 334848 or $current_node->[1] == 338944 or $current_node->[1] == 333825 and do { my $encoding = $current_node->[0]->getAttributeNS(undef, 'encoding') || ''; $encoding =~ tr/A-Z/a-z/; $encoding eq 'application/xhtml+xml' unless $encoding eq 'text/html' } | |
2284 | 12 | 55 | 0 | {'altglyph', 'altGlyph', 'altglyphdef', 'altGlyphDef', 'altglyphitem', 'altGlyphItem', 'animatecolor', 'animateColor', 'animatemotion', 'animateMotion', 'animatetransform', 'animateTransform', 'clippath', 'clipPath', 'feblend', 'feBlend', 'fecolormatrix', 'feColorMatrix', 'fecomponenttransfer', 'feComponentTransfer', 'fecomposite', 'feComposite', 'feconvolvematrix', 'feConvolveMatrix', 'fediffuselighting', 'feDiffuseLighting', 'fedisplacementmap', 'feDisplacementMap', 'fedistantlight', 'feDistantLight', 'feflood', 'feFlood', 'fefunca', 'feFuncA', 'fefuncb', 'feFuncB', 'fefuncg', 'feFuncG', 'fefuncr', 'feFuncR', 'fegaussianblur', 'feGaussianBlur', 'feimage', 'feImage', 'femerge', 'feMerge', 'femergenode', 'feMergeNode', 'femorphology', 'feMorphology', 'feoffset', 'feOffset', 'fepointlight', 'fePointLight', 'fespecularlighting', 'feSpecularLighting', 'fespotlight', 'feSpotLight', 'fetile', 'feTile', 'feturbulence', 'feTurbulence', 'foreignobject', 'foreignObject', 'glyphref', 'glyphRef', 'lineargradient', 'linearGradient', 'radialgradient', 'radialGradient', 'textpath', 'textPath'}->{$tag_name} || $tag_name |
2318 | 0 | 0 | 0 | $svg_attr_name->{$attr_name} || $attr_name |
2501 | 25 | 0 | 0 | $foster_parent_element ||= $self->{'open_elements'}[0][0] |
2808 | 6 | 0 | 482 | $token->{'tag_name'} eq 'style' or $token->{'tag_name'} eq 'noframes' |
100 | 19 | 358 | $token->{'tag_name'} eq 'body' or $token->{'tag_name'} eq 'frameset' | |
3640 | 29 | 1 | 363 | $token->{'tag_name'} eq 'td' or $token->{'tag_name'} eq 'th' |
4929 | 0 | 0 | 0 | $node->[1] == 16393 or $node->[1] == 16394 |
5040 | 7 | 0 | 0 | $node->[1] == 16394 or $node->[1] == 16393 |
5375 | 0 | 1 | 13 | defined $self->{'inner_html_node'} || $self->{'open_elements'}[-1][1] == 131074 |
5427 | 8 | 11 | 549 | $token->{'tag_name'} eq 'dt' or $token->{'tag_name'} eq 'dd' |
0 | 12 | 371 | $token->{'tag_name'} eq 'optgroup' or $token->{'tag_name'} eq 'option' | |
4 | 4 | 363 | $token->{'tag_name'} eq 'rt' or $token->{'tag_name'} eq 'rp' | |
42 | 64 | 257 | $token->{'tag_name'} eq 'math' or $token->{'tag_name'} eq 'svg' | |
1 | 1 | 247 | $token->{'tag_name'} eq 'param' or $token->{'tag_name'} eq 'source' | |
2 | 1 | 246 | $token->{'tag_name'} eq 'param' or $token->{'tag_name'} eq 'source' or $token->{'tag_name'} eq 'track' | |
5554 | 0 | 0 | 7 | @{$self->{'open_elements'};} == 1 or not $self->{'open_elements'}[1][1] == 131089 |
5576 | 0 | 0 | 39 | @{$self->{'open_elements'};} == 1 or not $self->{'open_elements'}[1][1] == 131089 |
5665 | 321 | 85 | 48 | $token->{'tag_name'} ne 'table' or ($self->_data($self->{'document'})->{'manakai_compat_mode'} || '') ne 'quirks' |
5723 | 12 | 4 | 419 | $token->{'tag_name'} eq 'pre' or $token->{'tag_name'} eq 'listing' |
5794 | 16 | 0 | 1 | $node->[1] & 131072 || $node->[1] & 65536 |
5835 | 0 | 2 | 0 | $non_optional ||= $node |
5906 | 16 | 0 | 2 | $node->[1] & 131072 || $node->[1] & 65536 |
5947 | 0 | 3 | 0 | $non_optional ||= $node |
6537 | 0 | 0 | 0 | $svg_attr_name->{$attr_name} || $attr_name |
6721 | 12 | 4 | 26 | $self->{'insertion_mode'} & 64 or $self->{'insertion_mode'} & 32 |
6737 | 35 | 18 | 319 | $token->{'tag_name'} eq 'body' or $token->{'tag_name'} eq 'html' |
6766 | 105 | 0 | 7 | $_->[1] & 16 or $_->[1] == 16393 |
105 | 0 | 7 | $_->[1] & 16 or $_->[1] == 16393 or $_->[1] == 16394 | |
0 | 0 | 7 | $_->[1] & 16 or $_->[1] == 16393 or $_->[1] == 16394 or $_->[1] == 16396 | |
6993 | 8 | 17 | 0 | $non_optional ||= $node |
7118 | 27 | 3 | 4 | $node->[1] & 131072 or $node->[1] & 65536 |
7336 | 0 | 0 | 0 | $node_ln eq 'title' or $node_ln eq 'textarea' |