/[suikacvs]/markup/html/whatpm/Whatpm/HTML.html
Suika

Contents of /markup/html/whatpm/Whatpm/HTML.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download) (as text)
Sun Nov 4 04:34:30 2007 UTC (18 years, 11 months ago) by wakaba
Branch: MAIN
Changes since 1.5: +25 -12 lines
File MIME type: text/html
++ whatpm/t/ChangeLog	4 Nov 2007 04:31:01 -0000
	* content-model-2.dat: Tests for |manifest=""| are added.

2007-11-04  Wakaba  <wakaba@suika.fam.cx>

++ whatpm/Whatpm/ContentChecker/ChangeLog	4 Nov 2007 04:32:03 -0000
	* HTML.pm: Allow <html manifest=URI>.

2007-11-04  Wakaba  <wakaba@suika.fam.cx>

1 wakaba 1.1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2     <html xmlns="http://www.w3.org/1999/xhtml">
3     <head>
4 wakaba 1.6 <title>Whatpm::HTML - An HTML Parser and Serializer</title>
5 wakaba 1.1 <link rel="stylesheet" href="http://suika.fam.cx/www/style/html/pod.css" type="text/css" />
6     <link rev="made" href="mailto:[email protected]" />
7     </head>
8    
9     <body>
10    
11     <p><a name="__index__"></a></p>
12     <!-- INDEX BEGIN -->
13    
14     <ul>
15    
16     <li><a href="#name">NAME</a></li>
17     <li><a href="#synopsis">SYNOPSIS</a></li>
18     <li><a href="#description">DESCRIPTION</a></li>
19     <li><a href="#methods">METHODS</a></li>
20 wakaba 1.5 <li><a href="#lowlevel_interface">LOW-LEVEL INTERFACE</a></li>
21     <ul>
22    
23     <li><a href="#application_cache_selection_algorithm_hook">Application Cache Selection Algorithm Hook</a></li>
24     </ul>
25    
26 wakaba 1.6 <li><a href="#error_reports">ERROR REPORTS</a></li>
27 wakaba 1.1 <li><a href="#to_do">TO DO</a></li>
28     <li><a href="#see_also">SEE ALSO</a></li>
29     <li><a href="#author">AUTHOR</a></li>
30     <li><a href="#license">LICENSE</a></li>
31     </ul>
32     <!-- INDEX END -->
33    
34     <hr />
35     <p>
36     </p>
37     <h1><a name="name">NAME</a></h1>
38 wakaba 1.6 <p>Whatpm::HTML - An HTML Parser and Serializer</p>
39 wakaba 1.1 <p>
40     </p>
41     <hr />
42     <h1><a name="synopsis">SYNOPSIS</a></h1>
43     <pre>
44 wakaba 1.2 use Whatpm::HTML;
45 wakaba 1.1
46     my $s = q&lt;&lt;!DOCTYPE html&gt;&lt;html&gt;...&lt;/html&gt;&gt;;
47     # $doc = an empty DOM |Document| object
48     my $on_error = sub {
49 wakaba 1.6 my %error = @_;
50     warn $error{type}, &quot;\n&quot;;
51 wakaba 1.1 };
52    
53 wakaba 1.2 Whatpm::HTML-&gt;parse_string ($s =&gt; $doc, $onerror);
54 wakaba 1.1
55 wakaba 1.6 ## Now, |$doc| is the DOM representation of |$s|.</pre>
56 wakaba 1.1 <p>
57     </p>
58     <hr />
59     <h1><a name="description">DESCRIPTION</a></h1>
60 wakaba 1.2 <p>The <code>Whatpm::HTML</code> module contains HTML parser and serializer.</p>
61 wakaba 1.1 <p>The HTML parser can be used to construct the DOM tree representation
62     from an HTML document. The parsing and tree construction are done
63     as described in the Web Application 1.0 specification.</p>
64     <p>The HTML serializer can be used to obtain the HTML document representation
65     of a DOM tree (or a tree fragment thereof). The serialization
66     is performed as described in the Web Applications 1.0 specification
67     for <code>innerHTML</code> DOM attribute.</p>
68 wakaba 1.2 <p>This module is part of Whatpm - Perl Modules for
69 wakaba 1.1 Web Hypertext Application Technologies.</p>
70     <p>
71     </p>
72     <hr />
73     <h1><a name="methods">METHODS</a></h1>
74     <dl>
75 wakaba 1.2 <dt><strong><a name="item_parse_string">[<em>$doc</em> =] Whatpm::HTML-&gt;parse_string (<em>$s</em>, <em>$doc</em>[, <em>$onerror</em>]);</a></strong><br />
76 wakaba 1.1 </dt>
77     <dd>
78