509 |
push @$new_todos, {type => 'element-attributes', node => $node}; |
push @$new_todos, {type => 'element-attributes', node => $node}; |
510 |
last TP; |
last TP; |
511 |
} |
} |
512 |
|
} elsif ($node_ns eq $HTML_NS and $node_ln eq 'del') { |
513 |
|
my $sig_flag = $parent_todo->{flag}->{has_descendant}->{significant}; |
514 |
|
unshift @$sib, @{$node->child_nodes}; |
515 |
|
push @$new_todos, {type => 'element-attributes', node => $node}; |
516 |
|
push @$new_todos, |
517 |
|
{type => 'code', |
518 |
|
code => sub { |
519 |
|
$parent_todo->{flag}->{has_descendant}->{significant} = 0 |
520 |
|
if not $sig_flag; |
521 |
|
}}; |
522 |
|
last TP; |
523 |
} else { |
} else { |
524 |
unshift @$sib, @{$node->child_nodes}; |
unshift @$sib, @{$node->child_nodes}; |
525 |
push @$new_todos, {type => 'element-attributes', node => $node}; |
push @$new_todos, {type => 'element-attributes', node => $node}; |