Parent Directory
|
Revision Log
++ ChangeLog 21 Jul 2008 08:33:17 -0000 * cc.cgi (print_table_section): Removed (now part of WebHACC::Language::DOM). 2008-07-21 Wakaba <wakaba@suika.fam.cx> ++ html/WebHACC/Language/ChangeLog 21 Jul 2008 08:39:05 -0000 * Base.pm (generate_source_string_section): Invoke |add_source_to_parse_error_list| method for generating a script fragment. * CSS.pm, CacheManifest.pm, DOM.pm, HTML.pm, WebIDL.pm, XML.pm: Use new methods for generating sections and error lists. * DOM.pm (generate_additional_sections, generate_table_section): New. * Default.pm: Pass |input| in place of |url| for unknown syntax error. 2008-07-21 Wakaba <wakaba@suika.fam.cx> ++ html/WebHACC/ChangeLog 21 Jul 2008 08:36:01 -0000 * Output.pm (start_section, end_section): "role" option implemented. Automatical rank setting implemented. (start_error_list, end_error_list): New. (add_source_to_parse_error_list): New. * Result.pm: "Unknown location" message text changed. 2008-07-21 Wakaba <wakaba@suika.fam.cx>
| 1 | wakaba | 1.1 | package WebHACC::Language::WebIDL; |
| 2 | use strict; | ||
| 3 | require WebHACC::Language::Base; | ||
| 4 | push our @ISA, 'WebHACC::Language::Base'; | ||
| 5 | |||
| 6 | sub new ($) { | ||
| 7 | my $self = bless {}, shift; | ||
| 8 | return $self; | ||
| 9 | } # new | ||
| 10 | |||
| 11 | sub generate_syntax_error_section ($) { | ||
| 12 | my $self = shift; | ||
| 13 | |||
| 14 | require Whatpm::WebIDL; | ||
| 15 | |||
| 16 | my $out = $self->output; | ||
| 17 | wakaba | 1.3 | $out->start_section (role => 'parse-errors'); |
| 18 | $out->start_error_list (role => 'parse-err |