| 10 |
|
|
| 11 |
sub generate_syntax_error_section ($) { |
sub generate_syntax_error_section ($) { |
| 12 |
my $self = shift; |
my $self = shift; |
| 13 |
|
|
| 14 |
my $out = $self->output; |
my $out = $self->output; |
| 15 |
$out->start_section (id => 'parse-errors', title => 'Parse Errors'); |
|
| 16 |
$out->start_tag ('dl', id => 'parse-errors-list'); |
$out->start_section (role => 'parse-errors'); |
| 17 |
|
$out->start_error_list (role => 'parse-errors'); |
| 18 |
|
|
| 19 |
my $input = $self->input; |
my $input = $self->input; |
| 20 |
my $result = $self->result; |
my $result = $self->result; |
| 54 |
$self->{structure} = $p->parse_char_string ($$s); |
$self->{structure} = $p->parse_char_string ($$s); |
| 55 |
$self->{structure}->manakai_input_encoding ($charset) if defined $charset; |
$self->{structure}->manakai_input_encoding ($charset) if defined $charset; |
| 56 |
|
|
| 57 |
$out->end_tag ('dl'); |
$out->end_error_list (role => 'parse-errors'); |
| 58 |
$out->end_section; |
$out->end_section; |
| 59 |
} # generate_syntax_error_section |
} # generate_syntax_error_section |
| 60 |
|
|
| 66 |
my $self = shift; |
my $self = shift; |
| 67 |
|
|
| 68 |
my $out = $self->output; |
my $out = $self->output; |
| 69 |
$out->start_section (id => 'document-tree', title => 'Document Tree', |
|
| 70 |
short_title => 'Tree'); |
$out->start_section (role => 'reserialized'); |
| 71 |
|
|
| 72 |
$out->start_code_block; |
$out->start_code_block; |
| 73 |
$out->text ($self->{structure}->css_text); |
$out->text ($self->{structure}->css_text); |
| 81 |
|
|
| 82 |
my $out = $self->output; |
my $out = $self->output; |
| 83 |
|
|
| 84 |
$out->start_section (id => 'document-errors', title => 'Document Errors'); |
$out->start_section (role => 'structure-errors'); |
| 85 |
$out->start_tag ('dl', class => 'document-errors-list'); |
$out->start_error_list (role => 'structure-errors'); |
| 86 |
|
|
| 87 |
$self->result->add_error (level => 'u', |
$self->result->add_error (level => 'u', |
| 88 |
layer => 'structure', |
layer => 'structure', |
| 89 |
input => $self->input, |
input => $self->input, |
| 90 |
type => 'CSSOM validation not supported'); |
type => 'CSSOM validation not supported'); |
| 91 |
|
|
| 92 |
$out->end_tag ('dl'); |
$out->end_error_list (role => 'structure-errors'); |
| 93 |
$out->end_section; |
$out->end_section; |
| 94 |
} # generate_structure_error_section |
} # generate_structure_error_section |
| 95 |
|
|