2008-08-16 Wakaba * Input.pm (Subdocument new): Invoke superclass's new method such that |urls| attribute is initialized. * Result.pm (add_error): Use ->url attribute to obtain the URL of the document. No longer output |text| argument, since all error types except for those used in the WebIDL module are now defined in the catalog. 2008-08-16 Wakaba * Output.pm (start_section): Don't add item to the non-tab navigation menu if the item's rank is higher than 2. 2008-08-16 Wakaba * Result.pm (add_error): Pass |value| argument, if any, to the |nl_text| for error type texts. 2008-08-15 Wakaba * Output.pm (xref_text): New method. (node_link): Don't make node path consumed by catalog engine. 2008-08-15 Wakaba * Output.pm (nl_text): New rule, {value}, is implemented. 2008-08-15 Wakaba * Output.pm: |fieldset| end tag no longer necessary. * Result.pm: Link to "#parse-errors" if there are encoding layer errors. 2008-08-15 Wakaba * Input.pm (generate_transfer_sections): Use standard error list methods for transfer errors. Typos fixed. * Output.pm (has_error): New attribute. (start_error_list, end_error_list): Support for role "transfer-errors". (end_error_list): Generate "no error found" paragraph if it should be. (generate_input_section): Decode parameters as UTF-8. * Result.pm (add_error): Set |has_error| flag. Use catalog for "Unknown location" message. (generate_result_section): Use different text for result table rows than normal messages, to avoid collision with other messages (such as "Charset"). 2008-08-14 Wakaba * Input.pm: Methods |generate_transfer_sections| and |generate_http_header_section| are moved to HTTP subclass, since they are irrelevant to non-HTTP inputs. (_get_document): Forbidden host error was not represented by WebHACC::Input::Error subclass. (WebHACC::Input::Error generate_transfer_sections): Use role name for the section. (WebHACC::Input::HTTPError generate_transfer_sections): New method added, since the main superclass, i.e. WebHACC::Input::Error, no longer dumps HTTP headers due to the change mentioned above. * Output.pm (start_section): New roles "transfer-errors" and "result". * Result.pm (parent_result): New attribute. (layer_applicable, layer_uncertain): New methods to set flags. (add_error): Natural language strings are now handled by the catalog mechanism. Use new scoring mechanism. (generate_result_section): Use catalog for all natural language strings. Table generation is now much more sophiscated that it was. Support for subdoc result summary. Support for the column of the number of informational message. Support for "N/A" status. 2008-08-14 Wakaba * Output.pm (start_section): Roles set class="", too. New "source" role for source code sections. 2008-08-14 Wakaba * Input.pm (id_prefix): Use the parent subdoc's id_prefix as the prefix of the subdoc id_prefix (e.g. subdoc-1-subdoc-1- for subdoc #1.1). (start_section): Set the role of the section element as subdoc. * Output.pm (start_section): Support for "subdoc" role. Use parent input's id_prefix as parent_id. 2008-08-14 Wakaba * Output.pm: Support for inner tabs for "input" subsections. Improved support for "details" widget. 2008-08-10 Wakaba * Output.pm (html_header, start_section): Generate script elements for tab styling. * Result.pm: Link to error list section of transfer-protocol-level errors. 2008-08-02 Wakaba * Output.pm ($htescape_value): New code. Some methods should invoke this code instead of original $htescape, since that code will convert invisible characters into HTML tags such that that code is not suitable for attribute values and CDATA/PCDATA element contents. ($get_object_path): New. Future revision of this code should support real "path" to the node object. The current version only dumps the type and the name of the node itself. (node_link): Support for non-DOM nodes. * Result.pm (add_error): Support for non-DOM nodes. 2008-07-27 Wakaba * Output.pm (new, input): |input| attribute should always have an input object, even though it might be an empty one. (add_source_to_parse_error_list): s/shift/shift ()/ to remove ambigiousness warning. (select): New method. (generate_input_section): New method. 2008-07-26 Wakaba * Input.pod: New. * Input.pm (urls, url, add_url): New. Originally handled as |$input->{uri}| and |$input->{request_uri}|. (get_document and related methods/classes): New. Originally part of |cc.cgi|. * Output.pm (html_header): Link to |cc-script.js|. 2008-07-21 Wakaba * Input.pm: Most human-readable texts are now handled by catalog. (id_prefix): Support for nested subdocuments. * Output.pm (start_section, dt, xref): Section/item names and link labels are now handled by catalog. (load_text_catalog, nl_text): New methods. (html_header): Application name is moved to catalog. * Result.pm (add_error): Important error properties are now exposed to client-side script as data-* attributes. Labels are now handled by catalog. Error descriptions are now taken from catalog as it were. 2008-07-21 Wakaba * Output.pm (html_header): Application name changed. 2008-07-21 Wakaba * Input.pm (full_subdocument_index): New method, for the support of hierarchical subdocument numbers. (start_section): Use hierarhical subdocument numbers for section headings. * Output.pm (http_header, http_error, html_header): New methods. 2008-07-21 Wakaba * 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 * Result.pm (add_label): Output error-level description text before the description of the error itself, which is originally coded in get_error_level_label, which in turn comes from cc.cgi at first. (get_error_level_label): Removed. 2008-07-21 Wakaba * Input.pm: A new subclass for subdocuments are added. Methods for information sections are added (from cc.cgi). * Output.pm (code): Support for attributes. (script, dt): New methods. (node_link): New method (from get_node_link in WebHACC::Result, which comes from cc.cgi). * Result.pm (add_error): Show some text even if no location infomration is available. Use input object, if available, as fallback for location information. (get_error_label, get_node_path, get_node_link): Removed. The first method is no longer used. The latters are now supported as |node_link| method in WebHACC::Output. 2008-07-21 Wakaba * Input.pm (generate_transfer_sections, generate_http_header_section): New (partially comes from cc.cgi). * Output.pm (link): Call |start_tag| such that attributes can be set. (link_to_webhacc): New. (encode_url_component): From WebHACC::Language::Base. * Result.pm: Support for error outputting and result table generation. 2008-07-20 Wakaba * ChangeLog: New file. * Input.pm, Output.pm, Result.pm: New modules. * Langauge/: New directory.