994 |
$not_allowed = 1; |
$not_allowed = 1; |
995 |
## NOTE: See also |base|'s "contexts" field in the spec |
## NOTE: See also |base|'s "contexts" field in the spec |
996 |
} |
} |
997 |
|
} elsif ($node->has_attribute_ns (undef, 'name') or |
998 |
|
$node->has_attribute_ns (undef, 'http-equiv')) { |
999 |
|
$phase = 'after base'; |
1000 |
} else { |
} else { |
1001 |
$phase = 'after base'; |
$phase = 'after base'; |
1002 |
|
$not_allowed = 1; |
1003 |
} |
} |
1004 |
} elsif ($node_ns eq $HTML_NS and $node_ln eq 'base') { |
} elsif ($node_ns eq $HTML_NS and $node_ln eq 'base') { |
1005 |
if ($phase eq 'initial' or $phase eq 'after charset') { |
if ($phase eq 'initial' or $phase eq 'after charset') { |
2773 |
if ({link => 1, style => 1}->{$node_ln}) { |
if ({link => 1, style => 1}->{$node_ln}) { |
2774 |
# |
# |
2775 |
} elsif ($node_ln eq 'meta') { |
} elsif ($node_ln eq 'meta') { |
2776 |
if ($node->has_attribute_ns (undef, 'charset')) { |
if ($node->has_attribute_ns (undef, 'name')) { |
|
$self->{onerror}->(node => $node, type => 'element not allowed'); |
|
|
} else { |
|
2777 |
# |
# |
2778 |
|
} else { |
2779 |
|
$self->{onerror}->(node => $node, |
2780 |
|
type => 'element not allowed'); |
2781 |
} |
} |
2782 |
} else { |
} else { |
2783 |
$self->{onerror}->(node => $node, type => 'element not allowed'); |
$self->{onerror}->(node => $node, type => 'element not allowed'); |