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 |
|
|