/[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.147 by wakaba, Sun May 25 06:03:57 2008 UTC revision 1.148 by wakaba, Sun May 25 07:54:33 2008 UTC
# Line 3416  sub _reset_insertion_mode ($) { Line 3416  sub _reset_insertion_mode ($) {
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');
# Line 4362  sub _tree_construction_main ($) { Line 4361  sub _tree_construction_main ($) {
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.
# Line 6233  sub _tree_construction_main ($) { Line 6233  sub _tree_construction_main ($) {
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 {
# Line 6676  sub _tree_construction_main ($) { Line 6676  sub _tree_construction_main ($) {
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') {

Legend:
Removed from v.1.147  
changed lines
  Added in v.1.148

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24