706 |
} |
} |
707 |
} |
} |
708 |
|
|
709 |
if ($value =~ m![+/][Xx][Mm][Ll]\z!) { |
if ({text => 1, html => 1, xhtml => 1}->{$value}) { |
710 |
|
# |
711 |
|
} elsif ($value =~ m![+/][Xx][Mm][Ll]\z!) { |
712 |
## ISSUE: There is no definition for "XML media type" in RFC 3023. |
## ISSUE: There is no definition for "XML media type" in RFC 3023. |
713 |
## Is |application/xml-dtd| an XML media type? |
## Is |application/xml-dtd| an XML media type? |
714 |
$value = 'xml'; |
$value = 'xml'; |
1111 |
|
|
1112 |
$Element->{$ATOM_NS}->{published} = \%AtomDateConstruct; |
$Element->{$ATOM_NS}->{published} = \%AtomDateConstruct; |
1113 |
|
|
1114 |
$Element->{$ATOM_NS}->{rights} = \%AtomDateConstruct; |
$Element->{$ATOM_NS}->{rights} = \%AtomTextConstruct; |
1115 |
## NOTE: SHOULD NOT be used to convey machine-readable information. |
## NOTE: SHOULD NOT be used to convey machine-readable information. |
1116 |
|
|
1117 |
$Element->{$ATOM_NS}->{source} = { |
$Element->{$ATOM_NS}->{source} = { |
1147 |
$not_allowed = 1; |
$not_allowed = 1; |
1148 |
} |
} |
1149 |
} elsif ($child_ln eq 'link') { |
} elsif ($child_ln eq 'link') { |
1150 |
if ($child_ln->rel eq $LINK_REL . 'alternate') { |
if ($child_el->rel eq $LINK_REL . 'alternate') { |
1151 |
my $type = $child_ln->get_attribute_ns (undef, 'type'); |
my $type = $child_el->get_attribute_ns (undef, 'type'); |
1152 |
$type = '' unless defined $type; |
$type = '' unless defined $type; |
1153 |
my $hreflang = $child_ln->get_attribute_ns (undef, 'hreflang'); |
my $hreflang = $child_el->get_attribute_ns (undef, 'hreflang'); |
1154 |
$hreflang = '' unless defined $hreflang; |
$hreflang = '' unless defined $hreflang; |
1155 |
my $key = 'link:'.(defined $type ? ':'.$type : '').':'. |
my $key = 'link:'.(defined $type ? ':'.$type : '').':'. |
1156 |
(defined $hreflang ? ':'.$hreflang : ''); |
(defined $hreflang ? ':'.$hreflang : ''); |