Branch Coverage

blib/lib/HTML/HTML5/Parser/TagSoupParser.pm
Criterion Covered Total %
branch 965 1418 68.0


line true false branch
26 0 11 if (eval { do { require XML::LibXML::Devel::SetLineNumber; 1 } }) { }
39 1259 0 if ref $_[0]
44 524 735 if (defined $element->lastChild and $element->lastChild->nodeType == 3)
53 687 48 if ($token)
56 680 7 if $parser and defined $token->{'line'}
58 680 7 if $parser and defined $token->{'column'}
83 0 20019 unless (&blessed($object) and $object->isa('XML::LibXML::Node'))
85 0 0 if $argc == 1
94 20009 10 if (ref $self) { }
112 14423 5596 if $argc == 3
113 198 19821 if $argc == 2
503 0 708 ref $_[0] ? :
509 708 0 ref $_[0] ? :
538 0 708 if (defined $charset_name)
546 0 0 if ($char_stream) { }
562 708 28808 unless defined $char
567 0 708 if ($byte_buffer =~ /^\xFE\xFF/) { }
0 708 elsif ($byte_buffer =~ /^\xFF\xFE/) { }
0 708 elsif ($byte_buffer =~ /^\xEF\xBB\xBF/) { }
598 708 0 if $byte_buffer
600 708 0 if (defined $charset_name)
609 708 0 if ($char_stream)
643 0 708 if ($e_status & HTML::HTML5::Parser::Charset::Info::FALLBACK_ENCODING_IMPL()) { }
0 708 elsif (not $e_status & HTML::HTML5::Parser::Charset::Info::ERROR_REPORTING_ENCODING_IMPL()) { }
673 5 0 if ($char_stream) { }
674 5 0 if ($charset->{'category'} & HTML::HTML5::Parser::Charset::Info::CHARSET_CATEGORY_ASCII_COMPAT() or $charset->{'category'} & HTML::HTML5::Parser::Charset::Info::CHARSET_CATEGORY_UTF16()) { }
684 2 3 if (defined $self->{'input_encoding'} and $self->{'input_encoding'} eq $charset_name)
694 0 3 if (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())
702 0 3 if ($charset->{'category'} & HTML::HTML5::Parser::Charset::Info::CHARSET_CATEGORY_UTF16())
746 0 0 if ($opt{'octets'})
761 0 3 unless (&blessed($_) and $_->isa('HTML::HTML5::Parser::TagSoupParser::RestartParser'))
767 0 3 if ($e_status & HTML::HTML5::Parser::Charset::Info::FALLBACK_ENCODING_IMPL()) { }
0 3 elsif (not $e_status & HTML::HTML5::Parser::Charset::Info::ERROR_REPORTING_ENCODING_IMPL()) { }
808 0 0 ref $_[0] ? :
816 711 0 ref $_[0] ? :
824 0 711 unless exists $self->{'confident'}
827 711 0 if defined $self->{'input_encoding'}
837 0 1678 if (defined $self->{'next_nc'}) { }
847 832 846 if ($count)
856 135 711 if ($input->read($char, 1)) { }
868 135 0 if ($self->{'nc'} == 10) { }
0 0 elsif ($self->{'nc'} == 13) { }
876 0 0 if ($input->read($next, 1) and $next ne "\n")
887 0 1125 if defined $self->{'next_nc'}
892 909 216 if ($self->{'char_buffer_pos'} < length $self->{'char_buffer'}) { }
894 671 238 if ($self->{'char_buffer'} =~ /\G(?>$pattern)+/) { }
898 671 0 if ($count)
911 51 165 if ($count)
923 0 0 $opt{'token'} ? :
924 0 0 $opt{'token'} ? :
938 0 711 if ($_[3]) { }
942 0 711 unless defined $input->onerror
971 0 705 $p{'no_cache'} ? :
1091 392 330 if ($token->{'type'} == 1) { }
193 137 elsif ({3, 1, 4, 1, 5, 1}->{$token->{'type'}}) { }
128 9 elsif ($token->{'type'} == 6) { }
9 0 elsif ($token->{'type'} == 2) { }
1097 2 390 unless defined $doctype_name
1099 26 366 if ($doctype_name ne 'html') { }
9 357 elsif (defined $token->{'pubid'}) { }
2 355 elsif (defined $token->{'sysid'}) { }
1110 5 4 if (defined $xsysid and !defined($token->{'sysid'}) || $token->{'sysid'} eq $xsysid) { }
1120 0 2 if ($token->{'sysid'} eq 'about:legacy-compat') { }
1134 390 2 defined $token->{'name'} ? :
1140 7 385 if ($token->{'pubid'} || '') =~ /html 4/i or ($token->{'sysid'} || '') =~ /html4/i
1142 26 366 if ($token->{'quirks'} or $doctype_name ne 'html') { }
9 357 elsif (defined $token->{'pubid'}) { }
1207 0 495 if (substr($prefix, 0, length $_) eq $_)
1212 0 9 if ($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 9 elsif ($pubid =~ m[^-//W3C//DTD HTML 4.01 FRAMESET//] or $pubid =~ m[^-//W3C//DTD HTML 4.01 TRANSITIONAL//]) { }
2 7 elsif ($pubid =~ m[^-//W3C//DTD XHTML 1.0 FRAMESET//] or $pubid =~ m[^-//W3C//DTD XHTML 1.0 TRANSITIONAL//]) { }
1220 0 0 if (defined $token->{'sysid'}) { }
1237 13 379 if (defined $token->{'sysid'}) { }
1240 0 13 if ($sysid eq 'http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd') { }
1261 193 0 unless ($self->_data($self->{'document'}, 'manakai_is_srcdoc'))
1271 4 124 if ($token->{'data'} =~ s/^([\x09\x0A\x0C\x20]+)//) { }
1274 2 2 if (length $token->{'data'}) { }
1295 9 0 if defined $token->{'line'}
1297 9 0 if defined $token->{'column'}
1317 0 735 if ($token->{'type'} == 1) { }
5 730 elsif ($token->{'type'} == 2) { }
191 539 elsif ($token->{'type'} == 6) { }
512 27 elsif ($token->{'type'} == 3) { }
5 22 elsif ($token->{'type'} == 4) { }
22 0 elsif ($token->{'type'} == 5) { }
1327 5 0 if defined $token->{'line'}
1329 5 0 if defined $token->{'column'}
1335 19 172 if ($token->{'data'} =~ s/^([\x09\x0A\x0C\x20]+)//) { }
1338 1 18 if (length $token->{'data'}) { }
1354 56 456 if ($token->{'tag_name'} eq 'html') { }
1362 0 5 unless $attr
1370 56 0 if defined $token->{'line'}
1372 56 0 if defined $token->{'column'}
1378 0 56 if ($token->{'attributes'}{'manifest'}) { }
1399 4 1 if ({'head', 1, 'body', 1, 'html', 1, 'br', 1}->{$token->{'tag_name'}}) { }
1425 655 0 if defined $token->{'line'}
1427 655 0 if defined $token->{'column'}
1455 0 103 if ($self->{'open_elements'}[0][0] eq $node->[0])
1457 0 0 if (defined $self->{'inner_html_node'}) { }
1467 4 99 if ($node->[1] == 327697) { }
10 89 elsif ($node->[1] & 2048) { }
1468 0 4 if ($last) { }
1495 86 17 if defined $new_mode
1498 0 17 if ($node->[1] == 328593) { }
1514 0 17 if ($last)
1629 0 0 if ($afe->[0] eq '#marker') { }
1637 0 0 if ($token->{'tag_name'} eq $item_token->{'tag_name'})
1639 0 0 if (keys %{$$token{'attributes'};} != keys %{$$item_token{'attributes'};})
1646 0 0 unless $token->{'attributes'}{$attr_name}
1649 0 0 unless $token->{'attributes'}{$attr_name}{'value'} eq $item_token->{'attributes'}{$attr_name}{'value'}
1652 0 0 if ($depth == 3)
2123 0 5216 if ($token->{'n'}++ == 100)
2134 4947 269 if (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 4 3 if ($encoding eq 'text/html' or $encoding eq 'application/xhtml+xml') { }
2172 31 238 if ($token->{'type'} == 6) { }
135 103 elsif ($token->{'type'} == 3) { }
103 0 elsif ($token->{'type'} == 4) { }
0 0 elsif ($token->{'type'} == 2) { }
0 0 elsif ($token->{'type'} == 1) { }
2179 30 1 if ($data =~ /[^\x09\x0A\x0C\x0D\x20]/)
2188 11 124 if ({'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 2 0 if (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' })
2227 0 0 unless $encoding eq 'text/html'
2245 67 57 if ($nsuri eq 'http://www.w3.org/2000/svg')
2300 6 7 if (defined $foreign_attr_xname->{$attr_name}) { }
1 6 elsif ($nsuri eq 'http://www.w3.org/1998/Math/MathML' and $attr_name eq 'definitionurl') { }
6 0 elsif ($nsuri eq 'http://www.w3.org/1998/Math/MathML') { }
0 0 elsif ($nsuri eq 'http://www.w3.org/2000/svg') { }
2320 0 13 unless (defined $attr)
2324 0 13 unless (defined $attr)
2328 13 0 if ($attr)
2338 124 0 if defined $token->{'line'}
2340 124 0 if defined $token->{'column'}
2343 57 0 $nsuri eq 'http://www.w3.org/1998/Math/MathML' ? :
67 57 $nsuri eq 'http://www.w3.org/2000/svg' ? :
2345 0 124 if ($token->{'attributes'}{'xmlns'} and $token->{'attributes'}{'xmlns'}{'value'} ne $nsuri)
2349 0 124 if ($token->{'attributes'}{'xmlns:xlink'} and $token->{'attributes'}{'xmlns:xlink'}{'value'} ne 'http://www.w3.org/1999/xlink')
2356 2 122 if ($self->{'self_closing'}) { }
2370 1 102 if ($token->{'tag_name'} eq 'script' and $self->{'open_elements'}[-1][1] == 10245) { }
2391 14 88 if ($tag_name ne $token->{'tag_name'})
2401 89 23 if ($tag_name eq $token->{'tag_name'})
2412 10 13 if ($node->[1] & 2048)
2425 0 0 if defined $token->{'line'}
2427 0 0 if defined $token->{'column'}
2444 504 4456 if ($self->{'insertion_mode'} & 64 and not $self->{'insertion_mode'} & 4096)
2448 104 400 if ($token->{'type'} == 6) { }
2456 100 300 if ($self->{'pending_chars'}) { }
2462 0 100 if ($s eq '') { }
75 25 elsif ($s =~ /[^\x09\x0A\x0C\x0D\x20]/) { }
2487 25 50 if ($self->{'open_elements'}[-1][1] & 64) { }
2492 25 16 if ($self->{'open_elements'}[$_][1] == 328257)
2496 0 25 unless $next_sibling->parentNode eq $foster_parent_element
2521 2 4854 if ($token->{'type'} == 1) { }
9 4845 elsif ($token->{'type'} == 3 and $token->{'tag_name'} eq 'html') { }
43 4802 elsif ($token->{'type'} == 2) { }
510 4292 elsif ($self->{'insertion_mode'} & 4096) { }
2530 1 8 if ($self->{'insertion_mode'} == 260) { }
1 7 elsif ($self->{'insertion_mode'} == 516) { }
2546 9 0 unless ($top_el->hasAttribute($attr_name))
2558 43 0 if defined $token->{'line'}
2560 43 0 if defined $token->{'column'}
2561 8 35 if ($self->{'insertion_mode'} & 4) { }
1 34 elsif ($self->{'insertion_mode'} == 256) { }
2569 34 0 if @$open_tables
2574 414 96 if ($token->{'type'} == 6) { }
76 20 elsif ($token->{'type'} == 4) { }
20 0 elsif ($token->{'type'} == 5) { }
2575 9 405 if $self->{'ignore_newline'}
2578 412 2 if (length $token->{'data'}) { }
2591 29 47 if ($token->{'tag_name'} eq 'script') { }
2650 1 2 if ($self->{'insertion_mode'} == 8 and ($token->{'tag_name'} || '') eq 'object' and $token->{'type'} == 4 and $self->_data($self->{'document'}, 'isHTML4'))
2656 1 0 if $self->{'open_elements'}[-1][0]->localname eq 'object'
2660 811 3481 if ($self->{'insertion_mode'} & 8) { }
2762 719 elsif ($self->{'insertion_mode'} & 16) { }
397 322 elsif ($self->{'insertion_mode'} & 64) { }
8 314 elsif (($self->{'insertion_mode'} & 2047) == 2) { }
131 183 elsif ($self->{'insertion_mode'} & 1024) { }
93 90 elsif ($self->{'insertion_mode'} & 256) { }
90 0 elsif ($self->{'insertion_mode'} & 512) { }
2661 198 613 if ($token->{'type'} == 6) { }
536 77 elsif ($token->{'type'} == 3) { }
34 43 elsif ($token->{'type'} == 4) { }
43 0 elsif ($token->{'type'} == 5) { }
2662 19 179 if ($token->{'data'} =~ s/^([\x09\x0A\x0C\x20]+)//)
2663 8 11 if ($self->{'insertion_mode'} == 11) { }
2671 18 1 unless (length $token->{'data'})
2679 176 4 if ($self->{'insertion_mode'} == 11) { }
0 4 elsif ($self->{'insertion_mode'} == 9) { }
2 2 elsif ($self->{'insertion_mode'} == 8) { }
2686 176 0 if defined $token->{'line'}
2688 176 0 if defined $token->{'column'}
2728 180 0 if defined $token->{'line'}
2730 180 0 if defined $token->{'column'}
2742 28 508 if ($token->{'tag_name'} eq 'head') { }
477 31 elsif ($self->{'insertion_mode'} == 11) { }
2743 26 2 if ($self->{'insertion_mode'} == 11) { }
0 2 elsif ($self->{'insertion_mode'} == 10) { }
2758 26 0 if defined $token->{'line'}
2760 26 0 if defined $token->{'column'}
2793 477 0 if defined $token->{'line'}
2795 477 0 if defined $token->{'column'}
2808 0 508 if ($token->{'tag_name'} eq 'base') { }
2 506 elsif ({'link', 1, 'basefont', 1, 'bgsound', 1}->{$token->{'tag_name'}}) { }
0 506 elsif ($token->{'tag_name'} eq 'command') { }
7 499 elsif ($token->{'tag_name'} eq 'meta') { }
11 488 elsif ($token->{'tag_name'} eq 'title') { }
6 482 elsif ($token->{'tag_name'} eq 'style' or $token->{'tag_name'} eq 'noframes') { }
0 482 elsif ($token->{'tag_name'} eq 'noscript') { }
5 477 elsif ($token->{'tag_name'} eq 'script') { }
119 358 elsif ($token->{'tag_name'} eq 'body' or $token->{'tag_name'} eq 'frameset') { }
1 357 elsif ($self->{'insertion_mode'} == 8 and $token->{'tag_name'} =~ /^(object|param)$/ and $self->_data($self->{'document'}, 'isHTML4')) { }
2809 0 0 if ($self->{'insertion_mode'} == 9) { }
2823 0 0 if ($self->{'insertion_mode'} == 10) { }
2848 0 0 if defined $token->{'line'}
2850 0 0 if defined $token->{'column'}
2858 0 0 if $self->{'insertion_mode'} == 10
2866 0 2 if ($self->{'insertion_mode'} == 10) { }
2891 2 0 if defined $token->{'line'}
2893 2 0 if defined $token->{'column'}
2901 0 2 if $self->{'insertion_mode'} == 10
2906 0 0 if ($self->{'insertion_mode'} == 8) { }
2928 0 0 if defined $token->{'line'}
2930 0 0 if defined $token->{'column'}
2938 0 0 if $self->{'insertion_mode'} == 10
2951 0 7 if ($self->{'insertion_mode'} == 10) { }
2976 7 0 if defined $token->{'line'}
2978 7 0 if defined $token->{'column'}
2986 3 4 if ($self->{'confident'}) { }
2987 2 2 if ($token->{'attributes'}{'charset'}) { }
1 1 elsif ($token->{'attributes'}{'content'} and $token->{'attributes'}{'http-equiv'}) { }
3000 1 0 if ($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) { }
3013 0 1 defined $2 ? :
0 1 defined $1 ? :
3022 2 1 if ($token->{'attributes'}{'charset'})
3027 1 2 if ($token->{'attributes'}{'content'})
3035 0 4 if $self->{'insertion_mode'} == 10
3040 0 11 if ($self->{'insertion_mode'} == 9) { }
2 9 elsif ($self->{'insertion_mode'} == 10) { }
3070 2 9 if ($self->{'insertion_mode'} & 2047) == 10
3077 3 3 if ($self->{'insertion_mode'} == 10) { }
3088 3 3 if ($self->{'insertion_mode'} & 2047) == 10
3091 0 0 if ($self->{'insertion_mode'} == 8) { }
0 0 elsif ($self->{'insertion_mode'} == 9) { }
3110 0 0 if defined $token->{'line'}
3112 0 0 if defined $token->{'column'}
3135 0 5 if ($self->{'insertion_mode'} == 9) { }
2 3 elsif ($self->{'insertion_mode'} == 10) { }
3158 2 3 if ($self->{'insertion_mode'} & 2047) == 10
3162 0 119 if ($self->{'insertion_mode'} == 9) { }
109 10 elsif ($self->{'insertion_mode'} == 8) { }
3200 119 0 if defined $token->{'line'}
3202 119 0 if defined $token->{'column'}
3208 100 19 if ($token->{'tag_name'} eq 'body') { }
19 0 elsif ($token->{'tag_name'} eq 'frameset') { }
3235 1 0 if defined $token->{'line'}
3236 1 0 if defined $token->{'column'}
3240 0 1 if ($token->{'tag_name'} eq 'param')
3252 0 357 if ($self->{'insertion_mode'} == 9) { }
357 0 elsif ($self->{'insertion_mode'} == 8) { }
3283 357 0 if defined $token->{'line'}
3285 357 0 if defined $token->{'column'}
3304 22 12 if ($token->{'tag_name'} eq 'head') { }
0 12 elsif ($token->{'tag_name'} eq 'noscript') { }
9 3 elsif ({'body', $self->{'insertion_mode'} != 9, 'html', $self->{'insertion_mode'} != 9, 'br', 1}->{$token->{'tag_name'}}) { }
3305 1 21 if ($self->{'insertion_mode'} == 11) { }
0 21 elsif ($self->{'insertion_mode'} == 9) { }
21 0 elsif ($self->{'insertion_mode'} == 8) { }
0 0 elsif ($self->{'insertion_mode'} == 10) { }
3312 1 0 if defined $token->{'line'}
3314 1 0 if defined $token->{'column'}
3341 0 0 if ($self->{'insertion_mode'} == 9) { }
3356 7 2 if ($self->{'insertion_mode'} == 11) { }
0 2 elsif ($self->{'insertion_mode'} == 8) { }
0 2 elsif ($self->{'insertion_mode'} == 9) { }
2 0 elsif ($self->{'insertion_mode'} == 10) { }
3363 7 0 if defined $token->{'line'}
3365 7 0 if defined $token->{'column'}
3410 9 0 if defined $token->{'line'}
3412 9 0 if defined $token->{'column'}
3433 24 19 if ($self->{'insertion_mode'} == 11) { }
11 8 elsif ($self->{'insertion_mode'} == 8) { }
0 8 elsif ($self->{'insertion_mode'} == 9) { }
3441 24 0 if defined $token->{'line'}
3443 24 0 if defined $token->{'column'}
3497 43 0 if defined $token->{'line'}
3499 43 0 if defined $token->{'column'}
3515 705 2057 if ($token->{'type'} == 6) { }
1078 979 elsif ($token->{'type'} == 3) { }
393 586 elsif ($token->{'type'} == 4) { }
586 0 elsif ($token->{'type'} == 5) { }
3523 0 705 if ($token->{'data'} eq '')
3533 237 468 if ($self->{'frameset_ok'} and $token->{'data'} =~ /[^\x09\x0A\x0C\x0D\x20]/)
3541 9 1069 if ({'caption', 1, 'col', 1, 'colgroup', 1, 'tbody', 1, 'td', 1, 'tfoot', 1, 'th', 1, 'thead', 1, 'tr', 1}->{$token->{'tag_name'}}) { }
3545 7 2 if (($self->{'insertion_mode'} & 2047) == 49) { }
1 1 elsif (($self->{'insertion_mode'} & 2047) == 50) { }
3549 7 5 if ($node->[1] == 327697) { }
0 5 elsif ($node->[1] & 512) { }
3587 1 0 if ($node->[1] == 327682) { }
0 0 elsif ($node->[1] & 512) { }
3613 1 0 if ($self->{'open_elements'}[-1][1] == 327682) { }
3640 30 363 if ($token->{'tag_name'} eq 'td' or $token->{'tag_name'} eq 'th') { }
4 359 elsif ($token->{'tag_name'} eq 'caption') { }
11 348 elsif ({'table', 1, 'tbody', 1, 'tfoot', 1, 'thead', 1, 'tr', 1}->{$token->{'tag_name'}} and ($self->{'insertion_mode'} & 2047) == 49) { }
3 345 elsif ($token->{'tag_name'} eq 'table' and ($self->{'insertion_mode'} & 2047) == 50) { }
57 288 elsif ({'body', 1, 'col', 1, 'colgroup', 1, 'html', 1}->{$token->{'tag_name'}}) { }
0 288 elsif ({'tbody', 1, 'tfoot', 1, 'thead', 1, 'tr', 1}->{$token->{'tag_name'}} and ($self->{'insertion_mode'} & 2047) == 50) { }
3641 29 1 if (($self->{'insertion_mode'} & 2047) == 49) { }
0 1 elsif (($self->{'insertion_mode'} & 2047) == 50) { }
3646 29 6 if ($node->[0]->tagName eq $token->{'tag_name'}) { }
0 6 elsif ($node->[1] & 512) { }
3655 0 29 unless (defined $i)
3672 3 26 if ($self->{'open_elements'}[-1][0]->tagName ne $token->{'tag_name'}) { }
3702 3 1 if (($self->{'insertion_mode'} & 2047) == 50) { }
1 0 elsif (($self->{'insertion_mode'} & 2047) == 49) { }
3708 3 1 if ($node->[1] == 327682) { }
0 1 elsif ($node->[1] & 512) { }
3733 3 0 if ($self->{'open_elements'}[-1][1] == 327682) { }
3772 8 34 if ($node->[0]->localname eq $token->{'tag_name'}) { }
11 23 elsif ($node->[1] == 327697) { }
3 20 elsif ($node->[1] & 512) { }
3815 3 3 if ($node->[1] == 327682) { }
0 3 elsif ($node->[1] & 512) { }
3824 0 3 unless (defined $i)
3840 1 2 if ($self->{'open_elements'}[-1][1] == 327682) { }
3861 4 53 if ($self->{'insertion_mode'} & 32) { }
3889 173 1227 unless ($entry->[1] & 16)
3905 229 168 if ($token->{'type'} == 3) { }
126 42 elsif ($token->{'type'} == 4) { }
42 0 elsif ($token->{'type'} == 5) { }
3906 102 127 if ({'tr', ($self->{'insertion_mode'} & 2047) != 193, 'th', 1, 'td', 1}->{$token->{'tag_name'}}) { }
30 97 elsif ({'caption', 1, 'col', 1, 'colgroup', 1, 'tbody', 1, 'tfoot', 1, 'thead', 1, 'tr', 1}->{$token->{'tag_name'}}) { }
3 94 elsif ($token->{'tag_name'} eq 'table') { }
3 91 elsif ($token->{'tag_name'} eq 'style') { }
2 89 elsif ($token->{'tag_name'} eq 'script') { }
8 81 elsif ($token->{'tag_name'} eq 'input') { }
5 76 elsif ($token->{'tag_name'} eq 'form') { }
3910 58 44 if (($self->{'insertion_mode'} & 2047) == 64)
3925 58 0 if defined $token->{'line'}
3927 58 0 if defined $token->{'column'}
3938 70 32 if (($self->{'insertion_mode'} & 2047) == 194) { }
3939 20 50 unless ($token->{'tag_name'} eq 'tr')
3953 50 20 if ($token->{'tag_name'} eq 'tr') { }
3971 50 0 if defined $token->{'line'}
3973 50 0 if defined $token->{'column'}
3979 50 0 if @$open_tables
3993 20 0 if defined $token->{'line'}
3995 20 0 if defined $token->{'column'}
4031 52 0 if defined $token->{'line'}
4033 52 0 if defined $token->{'column'}
4039 52 0 if @$open_tables
4052 2 28 if (($self->{'insertion_mode'} & 2047) == 193)
4058 2 0 if ($node->[1] == 131281) { }
0 0 elsif ($node->[1] & 512) { }
4067 0 2 unless (defined $i)
4088 1 1 if ($token->{'tag_name'} eq 'tr') { }
4099 1 28 if (($self->{'insertion_mode'} & 2047) == 194) { }
4104 1 0 if ($node->[1] == 131409) { }
0 0 elsif ($node->[1] & 512) { }
4113 0 1 unless (defined $i)
4146 3 26 if ($token->{'tag_name'} eq 'col') { }
26 0 elsif ({'caption', 1, 'colgroup', 1, 'tbody', 1, 'tfoot', 1, 'thead', 1}->{$token->{'tag_name'}}) { }
4162 3 0 if defined $token->{'line'}
4164 3 0 if defined $token->{'column'}
4173 3 0 if @$open_tables
4190 10 16 if $token->{'tag_name'} eq 'caption'
4208 26 0 if defined $token->{'line'}
4210 26 0 if defined $token->{'column'}
4216 26 0 if @$open_tables
4241 3 3 if ($node->[1] == 328257) { }
0 3 elsif ($node->[1] & 512) { }
4250 0 3 unless (defined $i)
4268 2 1 if ($self->{'open_elements'}[-1][1] == 328257) { }
4291 3 0 if @$open_tables
4297 2 0 if @$open_tables
4300 7 1 if ($token->{'attributes'}{'type'}) { }
4303 6 1 if ($type eq 'hidden') { }
4324 6 0 if defined $token->{'line'}
4326 6 0 if defined $token->{'column'}
4332 6 0 if @$open_tables
4352 2 3 if ($self->{'form_element'}) { }
4374 3 0 if defined $token->{'line'}
4376 3 0 if defined $token->{'column'}
4401 14 112 if ($token->{'tag_name'} eq 'tr' and ($self->{'insertion_mode'} & 2047) == 193) { }
56 56 elsif ($token->{'tag_name'} eq 'table') { }
7 49 elsif ({'tbody', 1, 'tfoot', 1, 'thead', 1}->{$token->{'tag_name'}} and $self->{'insertion_mode'} & 128) { }
19 30 elsif ({'body', 1, 'caption', 1, 'col', 1, 'colgroup', 1, 'html', 1, 'td', 1, 'th', 1, 'tr', 1, 'tbody', 1, 'tfoot', 1, 'thead', 1}->{$token->{'tag_name'}}) { }
4407 14 0 if ($node->[1] == 131281) { }
0 0 elsif ($node->[1] & 512) { }
4416 14 0 if (defined $i) { }
4442 13 43 if (($self->{'insertion_mode'} & 2047) == 193)
4448 13 1 if ($node->[1] == 131281) { }
0 1 elsif ($node->[1] & 512) { }
4457 0 13 unless (defined $i)
4481 21 35 if (($self->{'insertion_mode'} & 2047) == 194)
4486 21 1 if ($node->[1] == 131409) { }
0 1 elsif ($node->[1] & 512) { }
4495 0 21 unless (defined $i)
4533 56 1 if ($node->[1] == 328257) { }
0 1 elsif ($node->[1] & 512) { }
4542 0 56 unless (defined $i)
4563 3 4 if (($self->{'insertion_mode'} & 2047) == 193)
4568 3 3 if ($node->[0]->tagName eq $token->{'tag_name'}) { }
0 3 elsif ($node->[1] & 512) { }
4577 0 3 unless (defined $i)
4592 3 0 if ($node->[1] == 131281) { }
0 0 elsif ($node->[1] & 512) { }
4601 0 3 unless (defined $i)
4628 7 0 if ($node->[0]->tagName eq $token->{'tag_name'}) { }
0 0 elsif ($node->[1] & 512) { }
4637 0 7 unless (defined $i)
4682 0 42 if ($self->{'open_elements'}[-1][1] == 328593 and @{$self->{'open_elements'};} == 1) { }
4698 0 8 if ($token->{'type'} == 6) { }
6 2 elsif ($token->{'type'} == 3) { }
1 1 elsif ($token->{'type'} == 4) { }
1 0 elsif ($token->{'type'} == 5) { }
4699 0 0 if ($token->{'data'} =~ s/^([\x09\x0A\x0C\x20]+)//)
4701 0 0 unless (length $token->{'data'})
4711 3 3 if ($token->{'tag_name'} eq 'col') { }
4729 3 0 if defined $token->{'line'}
4731 3 0 if defined $token->{'column'}
4746 0 1 if ($token->{'tag_name'} eq 'colgroup') { }
0 1 elsif ($token->{'tag_name'} eq 'col') { }
4747 0 0 if ($self->{'open_elements'}[-1][1] == 328593) { }
4773 0 1 if ($self->{'open_elements'}[-1][1] == 328593 and @{$self->{'open_elements'};} == 1) { }
4791 0 4 if ($self->{'open_elements'}[-1][1] == 328593) { }
4809 17 114 if ($token->{'type'} == 6) { }
58 56 elsif ($token->{'type'} == 3) { }
41 15 elsif ($token->{'type'} == 4) { }
15 0 elsif ($token->{'type'} == 5) { }
4815 17 0 if $data ne ''
4820 15 43 if ($token->{'tag_name'} eq 'option') { }
5 38 elsif ($token->{'tag_name'} eq 'optgroup') { }
6 32 elsif ($token->{'tag_name'} eq 'select') { }
2 30 elsif ({'input', 1, 'textarea', 1, 'keygen', 1}->{$token->{'tag_name'}}) { }
10 20 elsif (($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'}}) { }
3 17 elsif ($token->{'tag_name'} eq 'script') { }
4821 1 14 if ($self->{'open_elements'}[-1][1] == 16394) { }
4845 15 0 if defined $token->{'line'}
4847 15 0 if defined $token->{'column'}
4857 2 3 if ($self->{'open_elements'}[-1][1] == 16394) { }
4865 1 4 if ($self->{'open_elements'}[-1][1] == 16393) { }
4889 5 0 if defined $token->{'line'}
4891 5 0 if defined $token->{'column'}
4929 2 0 if ($node->[1] == 131076) { }
0 0 elsif ($node->[1] == 16393 or $node->[1] == 16394) { }
4942 0 2 unless (defined $i)
4999 4 37 if ($token->{'tag_name'} eq 'optgroup') { }
1 36 elsif ($token->{'tag_name'} eq 'option') { }
27 9 elsif ($token->{'tag_name'} eq 'select') { }
3 6 elsif (($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 3 if ($self->{'open_elements'}[-1][1] == 16394 and $self->{'open_elements'}[-2][1] == 16393) { }
1 2 elsif ($self->{'open_elements'}[-1][1] == 16393) { }
5018 1 0 if ($self->{'open_elements'}[-1][1] == 16394) { }
5040 27 7 if ($node->[1] == 131076) { }
7 0 elsif ($node->[1] == 16394 or $node->[1] == 16393) { }
5053 0 27 unless (defined $i)
5092 3 6 if ($node->[0]->tagName eq $token->{'tag_name'}) { }
0 6 elsif ($node->[1] & 512) { }
5101 0 3 unless (defined $i)
5128 0 15 if ($self->{'open_elements'}[-1][1] == 328593 and @{$self->{'open_elements'};} == 1) { }
5142 12 81 if ($token->{'type'} == 6) { }
7 74 elsif ($token->{'type'} == 3) { }
38 36 elsif ($token->{'type'} == 4) { }
36 0 elsif ($token->{'type'} == 5) { }
5143 7 5 if ($token->{'data'} =~ s/^([\x09\x0A\x0C\x20]+)//)
5151 5 2 unless (length $token->{'data'})
5158 4 3 if ($self->{'insertion_mode'} == 260) { }
5173 3 4 if ($self->{'insertion_mode'} == 260) { }
5191 0 38 if ($self->{'insertion_mode'} == 260) { }
5204 36 2 if ($token->{'tag_name'} eq 'html') { }
5205 0 36 if (defined $self->{'inner_html_node'}) { }
5235 3 87 if ($token->{'type'} == 6) { }
28 59 elsif ($token->{'type'} == 3) { }
30 29 elsif ($token->{'type'} == 4) { }
29 0 elsif ($token->{'type'} == 5) { }
5236 1 2 if ($token->{'data'} =~ s/^([\x09\x0A\x0C\x20]+)//)
5239 1 0 unless (length $token->{'data'})
5246 2 0 if ($token->{'data'} =~ s/^[^\x09\x0A\x0C\x20]+//)
5247 1 1 if ($self->{'insertion_mode'} == 513) { }
0 1 elsif ($self->{'insertion_mode'} == 514) { }
5259 0 2 if (length $token->{'data'}) { }
5271 1 27 if ($token->{'tag_name'} eq 'frameset' and $self->{'insertion_mode'} == 513) { }
8 19 elsif ($token->{'tag_name'} eq 'frame' and $self->{'insertion_mode'} == 513) { }
8 11 elsif ($token->{'tag_name'} eq 'noframes') { }
5290 1 0 if defined $token->{'line'}
5292 1 0 if defined $token->{'column'}
5320 8 0 if defined $token->{'line'}
5322 8 0 if defined $token->{'column'}
5341 5 6 if ($self->{'insertion_mode'} == 513) { }
5 1 elsif ($self->{'insertion_mode'} == 514) { }
5360 14 16 if ($token->{'tag_name'} eq 'frameset' and $self->{'insertion_mode'} == 513) { }
10 6 elsif ($token->{'tag_name'} eq 'html' and $self->{'insertion_mode'} == 514) { }
5362 0 14 if ($self->{'open_elements'}[-1][1] == 328593 and @{$self->{'open_elements'};} == 1) { }
5375 13 1 if (not defined $self->{'inner_html_node'} || $self->{'open_elements'}[-1][1] == 131074) { }
5390 3 3 if ($self->{'insertion_mode'} == 513) { }
2 1 elsif ($self->{'insertion_mode'} == 514) { }
5408 13 16 if ($self->{'open_elements'}[-1][1] == 328593 and @{$self->{'open_elements'};} == 1) { }
5426 1148 372 if ($token->{'type'} == 3) { }
372 0 elsif ($token->{'type'} == 4) { }
5427 29 1119 if ($token->{'tag_name'} eq 'script') { }
6 1113 elsif ($token->{'tag_name'} eq 'style') { }
10 1103 elsif ({'base', 1, 'command', 1, 'link', 1, 'basefont', 1, 'bgsound', 1}->{$token->{'tag_name'}}) { }
9 1094 elsif ($token->{'tag_name'} eq 'meta') { }
10 1084 elsif ($token->{'tag_name'} eq 'title') { }
7 1077 elsif ($token->{'tag_name'} eq 'body') { }
39 1038 elsif ($token->{'tag_name'} eq 'frameset') { }
455 583 elsif ({'address', 1, 'article', 1, 'aside', 1, 'blockquote', 1, 'center', 1, 'details', 1, 'dir', 1, 'div', 1, 'dl', 1, 'fieldset', 1, 'figcaption', 1, 'figure', 1, 'footer', 1, 'header', 1, 'hgroup', 1, 'menu', 1, 'nav', 1, 'ol', 1, 'p', 1, 'section', 1, 'ul', 1, 'summary', 1, 'h1', 1, 'h2', 1, 'h3', 1, 'h4', 1, 'h5', 1, 'h6', 1, 'pre', 1, 'listing', 1, 'form', 1, 'table', 1, 'hr', 1}->{$token->{'tag_name'}}) { }
15 568 elsif ($token->{'tag_name'} eq 'li') { }
19 549 elsif ($token->{'tag_name'} eq 'dt' or $token->{'tag_name'} eq 'dd') { }
15 534 elsif ($token->{'tag_name'} eq 'plaintext') { }
34 500 elsif ($token->{'tag_name'} eq 'a') { }
68 432 elsif ($token->{'tag_name'} eq 'nobr') { }
27 405 elsif ($token->{'tag_name'} eq 'button') { }
3 402 elsif ({'xmp', 1, 'iframe', 1, 'noembed', 1, 'noframes', 1, 'noscript', 0}->{$token->{'tag_name'}}) { }
9 393 elsif ($token->{'tag_name'} eq 'isindex') { }
10 383 elsif ($token->{'tag_name'} eq 'textarea') { }
12 371 elsif ($token->{'tag_name'} eq 'optgroup' or $token->{'tag_name'} eq 'option') { }
8 363 elsif ($token->{'tag_name'} eq 'rt' or $token->{'tag_name'} eq 'rp') { }
106 257 elsif ($token->{'tag_name'} eq 'math' or $token->{'tag_name'} eq 'svg') { }
8 249 elsif ({'caption', 1, 'col', 1, 'colgroup', 1, 'frame', 1, 'head', 1, 'tbody', 1, 'td', 1, 'tfoot', 1, 'th', 1, 'thead', 1, 'tr', 1}->{$token->{'tag_name'}}) { }
3 246 elsif ($token->{'tag_name'} eq 'param' or $token->{'tag_name'} eq 'source' or $token->{'tag_name'} eq 'track') { }
5458 10 0 if defined $token->{'line'}
5460 10 0 if defined $token->{'column'}
5488 9 0 if defined $token->{'line'}
5490 9 0 if defined $token->{'column'}
5498 0 9 if ($self->{'confident'}) { }
5499 0 9 if ($token->{'attributes'}{'charset'}) { }
2 7 elsif ($token->{'attributes'}{'content'} and $token->{'attributes'}{'http-equiv'}) { }
5511 2 0 if ($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)
5523 0 2 defined $2 ? :
0 2 defined $1 ? :
5529 0 0 if ($token->{'attributes'}{'charset'})
5534 0 0 if ($token->{'attributes'}{'content'})
5554 0 7 if (@{$self->{'open_elements'};} == 1 or not $self->{'open_elements'}[1][1] == 131089) { }
5562 5 1 unless ($body_el->hasAttribute($attr_name))
5576 0 39 if (@{$self->{'open_elements'};} == 1 or not $self->{'open_elements'}[1][1] == 131089) { }
29 10 elsif (not $self->{'frameset_ok'}) { }
5589 10 0 if $body_parent
5611 10 0 if defined $token->{'line'}
5613 10 0 if defined $token->{'column'}
5655 1 454 if ($token->{'tag_name'} eq 'form' and defined $self->{'form_element'})
5665 406 48 if ($token->{'tag_name'} ne 'table' or ($self->_data($self->{'document'})->{'manakai_compat_mode'} || '') ne 'quirks')
5669 19 840 if ($_->[1] == 131129) { }
387 453 elsif ($_->[1] & 262144) { }
5687 11 424 if ({'h1', 1, 'h2', 1, 'h3', 1, 'h4', 1, 'h5', 1, 'h6', 1}->{$token->{'tag_name'}})
5689 0 11 if ($self->{'open_elements'}[-1][1] == 131075)
5715 435 0 if defined $token->{'line'}
5717 435 0 if defined $token->{'column'}
5723 16 419 if ($token->{'tag_name'} eq 'pre' or $token->{'tag_name'} eq 'listing') { }
15 404 elsif ($token->{'tag_name'} eq 'form') { }
129 275 elsif ($token->{'tag_name'} eq 'table') { }
17 258 elsif ($token->{'tag_name'} eq 'hr') { }
5726 10 6 if ($token->{'type'} == 6) { }
5728 7 3 if (length $token->{'data'}) { }
5794 2 17 if ($node->[1] == 131100) { }
13 4 elsif ($node->[1] & 131072 || $node->[1] & 65536 and not $node->[1] & 32) { }
2 2 elsif ($node->[1] & 8) { }
5806 1 1 if ($non_optional) { }
5845 1 38 if ($_->[1] == 131129) { }
14 24 elsif ($_->[1] & 262144) { }
5881 14 0 if defined $token->{'line'}
5883 14 0 if defined $token->{'column'}
5906 6 18 if ($node->[1] == 131098) { }
13 5 elsif ($node->[1] & 131072 || $node->[1] & 65536 and not $node->[1] & 32) { }
2 3 elsif ($node->[1] & 8) { }
5918 2 4 if ($non_optional) { }
5957 2 35 if ($_->[1] == 131129) { }
17 18 elsif ($_->[1] & 262144) { }
5990 17 0 if defined $token->{'line'}
5992 17 0 if defined $token->{'column'}
6008 2 25 if ($_->[1] == 131129) { }
13 12 elsif ($_->[1] & 262144) { }
6040 13 0 if defined $token->{'line'}
6042 13 0 if defined $token->{'column'}
6058 2 12 if ($node->[1] == 32769) { }
0 12 elsif ($node->[0] eq '#marker') { }
6073 0 0 if ($active_formatting_elements->[$_][0] eq $node->[0])
6080 0 7 if ($self->{'open_elements'}[$_][0] eq $node->[0])
6093 6 28 $self->{'insertion_mode'} & 64 ? :
6107 5 0 if ($attr)
6117 34 0 if defined $token->{'line'}
6119 34 0 if defined $token->{'column'}
6134 5 63 $self->{'insertion_mode'} & 64 ? :
6142 26 130 if ($node->[1] == 32770) { }
42 88 elsif ($node->[1] & 65536) { }
6175 42 0 if defined $token->{'line'}
6177 42 0 if defined $token->{'column'}
6194 1 74 if ($node->[1] == 393222) { }
26 48 elsif ($node->[1] & 65536) { }
6211 0 26 $self->{'insertion_mode'} & 64 ? :
6232 26 0 if defined $token->{'line'}
6234 26 0 if defined $token->{'column'}
6255 2 1 if ($token->{'tag_name'} eq 'xmp') { }
1 0 elsif ($token->{'tag_name'} eq 'iframe') { }
6262 0 3 if ($_->[1] == 131129) { }
2 1 elsif ($_->[1] & 262144) { }
6278 0 2 $self->{'insertion_mode'} & 64 ? :
6296 2 7 if (defined $self->{'form_element'}) { }
6307 2 5 if $at->{'action'}
6321 2 5 if ($prompt_attr) { }
6366 10 0 if defined $token->{'line'}
6368 10 0 if defined $token->{'column'}
6396 3 9 if ($self->{'open_elements'}[-1][1] == 16394)
6409 0 9 $self->{'insertion_mode'} & 64 ? :
6430 9 0 if defined $token->{'line'}
6432 9 0 if defined $token->{'column'}
6447 8 12 if ($node->[1] == 16385) { }
0 12 elsif ($node->[1] & 65536) { }
6454 6 2 unless ($self->{'open_elements'}[-1][1] == 16385)
6484 8 0 if defined $token->{'line'}
6486 8 0 if defined $token->{'column'}
6498 7 99 $self->{'insertion_mode'} & 64 ? :
6514 42 64 $token->{'tag_name'} eq 'math' ? :
6519 1 0 if (defined $foreign_attr_xname->{$attr_name}) { }
0 0 elsif ($token->{'tag_name'} eq 'math' and $attr_name eq 'definitionurl') { }
0 0 elsif ($token->{'tag_name'} eq 'math') { }
0 0 elsif ($token->{'tag_name'} eq 'svg') { }
6539 0 1 unless ($attr)
6543 1 0 if ($attr)
6553 106 0 if defined $token->{'line'}
6555 106 0 if defined $token->{'column'}
6558 42 64 $token->{'tag_name'} eq 'math' ? :
42 0 $token->{'tag_name'} eq 'math' ? :
42 0 ($token->{'tag_name'} eq 'math' ? 'http://www.w3.org/1998/Math/MathML' : 'http://www.w3.org/2000/svg') eq 'http://www.w3.org/1998/Math/MathML' ? :
64 42 ($token->{'tag_name'} eq 'math' ? 'http://www.w3.org/1998/Math/MathML' : 'http://www.w3.org/2000/svg') eq 'http://www.w3.org/2000/svg' ? :
6560 0 0 $token->{'tag_name'} eq 'math' ? :
0 106 if ($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 0 106 if ($token->{'attributes'}{'xmlns:xlink'} and $token->{'attributes'}{'xmlns:xlink'}{'value'} ne 'http://www.w3.org/1999/xlink')
6571 2 104 if ($self->{'self_closing'}) { }
6612 3 0 if defined $token->{'line'}
6614 3 0 if defined $token->{'column'}
6626 1 245 if ($token->{'tag_name'} eq 'image') { }
6635 33 213 $self->{'insertion_mode'} & 64 ? :
6649 3 32 unless ref $attr
6657 246 0 if defined $token->{'line'}
6659 246 0 if defined $token->{'column'}
6666 7 239 if ({'applet', 1, 'marquee', 1, 'object', 1}->{$token->{'tag_name'}}) { }
99 140 elsif ({'b', 1, 'big', 1, 'code', 1, 'em', 1, 'font', 1, 'i', 1, 's', 1, 'small', 1, 'strike', 1, 'strong', 1, 'tt', 1, 'u', 1}->{$token->{'tag_name'}}) { }
17 123 elsif ($token->{'tag_name'} eq 'input') { }
26 97 elsif ({'area', 1, 'br', 1, 'embed', 1, 'img', 1, 'wbr', 1, 'keygen', 1}->{$token->{'tag_name'}}) { }
42 55 elsif ($token->{'tag_name'} eq 'select') { }
6693 5 12 if ($token->{'attributes'}{'type'}) { }
6696 3 2 if ($type eq 'hidden') { }
6721 16 26 if ($self->{'insertion_mode'} & 64 or $self->{'insertion_mode'} & 32) { }
6737 53 319 if ($token->{'tag_name'} eq 'body' or $token->{'tag_name'} eq 'html') { }
67 252 elsif ({'address', 1, 'article', 1, 'aside', 1, 'blockquote', 1, 'center', 1, 'details', 1, 'dir', 1, 'div', 1, 'dl', 1, 'fieldset', 1, 'figure', 1, 'footer', 1, 'header', 1, 'hgroup', 1, 'listing', 1, 'menu', 1, 'nav', 1, 'ol', 1, 'pre', 1, 'section', 1, 'ul', 1, 'figcaption', 1, 'summary', 1, 'dd', 1, 'dt', 1, 'li', 1, 'applet', 1, 'button', 1, 'marquee', 1, 'object', 1}->{$token->{'tag_name'}}) { }
9 243 elsif ($token->{'tag_name'} eq 'form') { }
3 240 elsif ({'h1', 1, 'h2', 1, 'h3', 1, 'h4', 1, 'h5', 1, 'h6', 1}->{$token->{'tag_name'}}) { }
61 179 elsif ($token->{'tag_name'} eq 'p') { }
118 61 elsif ({'a', 1, 'b', 1, 'big', 1, 'code', 1, 'em', 1, 'font', 1, 'i', 1, 'nobr', 1, 's', 1, 'small', 1, 'strike', 1, 'strong', 1, 'tt', 1, 'u', 1}->{$token->{'tag_name'}}) { }
3 58 elsif ($token->{'tag_name'} eq 'br') { }
6744 52 10 if ($_->[1] == 131089) { }
1 9 elsif ($_->[1] & 65536) { }
6766 105 7 if ($_->[1] & 16 or $_->[1] == 16393 or $_->[1] == 16394 or $_->[1] == 16396) { }
6782 35 17 if ($token->{'tag_name'} eq 'body') { }
6815 65 20 if ($node->[0]->tagName eq $token->{'tag_name'}) { }
2 18 elsif ($node->[1] & 65536) { }
0 35 elsif ($token->{'tag_name'} eq 'li' and {'ul', 1, 'ol', 1}->{$node->[0]->localname}) { }
6831 65 2 if (defined $i) { }
6854 12 53 if ($self->{'open_elements'}[-1][0]->tagName ne $token->{'tag_name'}) { }
6872 3 62 if {'applet', 1, 'marquee', 1, 'object', 1}->{$token->{'tag_name'}}
6885 8 1 if ($node->[1] == 131073) { }
1 0 elsif ($node->[1] & 65536) { }
6895 8 1 if (defined $i) { }
6908 0 8 if ($self->{'open_elements'}[-1][0]->tagName ne $token->{'tag_name'}) { }
6933 2 5 if ($node->[1] == 131075) { }
1 4 elsif ($node->[1] & 65536) { }
6943 2 1 if (defined $i) { }
6956 2 0 if ($self->{'open_elements'}[-1][0]->tagName ne $token->{'tag_name'}) { }
6980 55 31 if ($node->[1] == 131129) { }
6 25 elsif ($node->[1] & 262144) { }
0 25 elsif ($node->[1] & 8) { }
6998 55 6 if (defined $i) { }
7003 14 41 if ($non_optional) { }
7026 6 0 if defined $token->{'line'}
7028 6 0 if defined $token->{'column'}
7053 0 3 $self->{'insertion_mode'} & 64 ? :
7062 3 0 if defined $token->{'line'}
7064 3 0 if defined $token->{'column'}
7072 1 57 if ($token->{'tag_name'} eq 'sarcasm')
7084 28 34 if ($node_tag_name eq $token->{'tag_name'}) { }
7100 0 28 if ($current_tag_name ne $token->{'tag_name'}) { }
7112 28 0 if $node_i < 0
7118 30 4 if ($node->[1] & 131072 or $node->[1] & 65536)
7157 0 0 if (ref $_[0]) { }
7170 0 0 if ($nt == 9) { }
0 0 elsif ($nt == 1) { }
7217 0 0 if (defined $self->{'next_nc'}) { }
7228 0 0 if ($count)
7238 0 0 if ($input->read($char, 1)) { }
7249 0 0 if ($self->{'nc'} == 10) { }
0 0 elsif ($self->{'nc'} == 13) { }
0 0 elsif (55296 <= $self->{'nc'} and $self->{'nc'} <= 57343) { }
7256 0 0 if ($input->read($next, 1) and $next ne "\n")
7272 0 0 if defined $p->{'next_nc'}
7277 0 0 if ($p->{'char_buffer_pos'} < length $p->{'char_buffer'}) { }
7279 0 0 if ($p->{'char_buffer'} =~ /\G(?>$pattern)+/) { }
7283 0 0 if ($count)
7296 0 0 if ($count)
7335 0 0 if ($node_ns eq 'http://www.w3.org/1999/xhtml') { }
0 0 elsif ($node_ns eq 'http://www.w3.org/2000/svg') { }
0 0 elsif ($node_ns eq 'http://www.w3.org/1998/Math/MathML') { }
7336 0 0 if ($node_ln eq 'title' or $node_ln eq 'textarea') { }
0 0 elsif ($node_ln eq 'script') { }
0 0 elsif ({'style', 1, 'script', 1, 'xmp', 1, 'iframe', 1, 'noembed', 1, 'noframes', 1, 'noscript', 1}->{$node_ln}) { }
0 0 elsif ($node_ln eq 'plaintext') { }
7384 0 0 if ($anode->node_type == 1)
7386 0 0 if (defined $nsuri and $nsuri eq 'http://www.w3.org/1999/xhtml')
7387 0 0 if ($anode->tagName eq 'form')