251 |
|
|
252 |
my $return = $self->check_element ($docel, $onerror); |
my $return = $self->check_element ($docel, $onerror); |
253 |
|
|
254 |
|
## TODO: Test for these checks are necessary. |
255 |
my $charset_name = $doc->input_encoding; |
my $charset_name = $doc->input_encoding; |
256 |
if (defined $charset_name) { |
if (defined $charset_name) { |
257 |
require Message::Charset::Info; |
require Message::Charset::Info; |
293 |
type => 'character encoding:'.$charset_name, |
type => 'character encoding:'.$charset_name, |
294 |
level => $self->{good_level}); |
level => $self->{good_level}); |
295 |
} |
} |
296 |
|
} elsif ($doc->manakai_is_html) { |
297 |
|
## NOTE: MUST and SHOULD requirements above cannot be tested, |
298 |
|
## since the document has no input charset encoding information. |
299 |
|
$onerror->(node => $doc, |
300 |
|
type => 'character encoding:', |
301 |
|
level => 'unsupported'); |
302 |
} |
} |
303 |
|
|
304 |
return $return; |
return $return; |