/[suikacvs]/markup/html/whatpm/Whatpm/HTML.pm.src
Suika

Diff of /markup/html/whatpm/Whatpm/HTML.pm.src

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.28 by wakaba, Mon Jun 25 00:14:40 2007 UTC revision 1.29 by wakaba, Mon Jun 25 11:05:57 2007 UTC
# Line 2029  sub _reset_insertion_mode ($) { Line 2029  sub _reset_insertion_mode ($) {
2029            
2030      ## Step 3      ## Step 3
2031      S3: {      S3: {
2032        $last = 1 if $self->{open_elements}->[0]->[0] eq $node->[0];        ## ISSUE: Oops! "If node is the first node in the stack of open
2033        if (defined $self->{inner_html_node}) {        ## elements, then set last to true. If the context element of the
2034          if ($self->{inner_html_node}->[1] eq 'td' or        ## HTML fragment parsing algorithm is neither a td element nor a
2035              $self->{inner_html_node}->[1] eq 'th') {        ## th element, then set node to the context element. (fragment case)":
2036            #        ## The second "if" is in the scope of the first "if"!?
2037          } else {        if ($self->{open_elements}->[0]->[0] eq $node->[0]) {
2038            $node = $self->{inner_html_node};          $last = 1;
2039            if (defined $self->{inner_html_node}) {
2040              if ($self->{inner_html_node}->[1] eq 'td' or
2041                  $self->{inner_html_node}->[1] eq 'th') {
2042                #
2043              } else {
2044                $node = $self->{inner_html_node};
2045              }
2046          }          }
2047        }        }
2048            

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24