102 |
</dd> |
</dd> |
103 |
<dd> |
<dd> |
104 |
<p>Note that the <code>Whatpm::NanoDOM</code> module provides a non-conforming |
<p>Note that the <code>Whatpm::NanoDOM</code> module provides a non-conforming |
105 |
implementation of DOM that only implements the subset that |
implementation of DOM that only implements a subset that |
106 |
is necessary for the purpose of <code>Whatpm::HTML</code>'s parsing and |
is necessary for the purpose of <code>Whatpm::HTML</code>'s parsing and |
107 |
serializing. |
serializing. |
108 |
With this module, creating a new HTML <code>Document</code> object |
With this module, creating a new HTML <code>Document</code> object |
123 |
</dd> |
</dd> |
124 |
<dd> |
<dd> |
125 |
<p>The first argument, <em>$node</em>, MUST be a DOM <code>Document</code>, |
<p>The first argument, <em>$node</em>, MUST be a DOM <code>Document</code>, |
126 |
<code>Node</code>, or <code>DocumentFragment</code> object.</p> |
<code>Element</code>, or <code>DocumentFragment</code> node.</p> |
127 |
</dd> |
</dd> |
128 |
<dd> |
<dd> |
129 |
<p>The second argument, <em>$onerror</em>, MUST be a reference to the |
<p>The second argument, <em>$onerror</em>, MUST be a reference to the |
130 |
error handling code. This code will be invoked if a descendant |
error handling code. This code will be invoked if a descendant |
131 |
of <em>$node</em> is not of <code>Element</code>, <code>Text</code>, <code>CDATASection</code>, |
of <em>$node</em> is neither of <code>Element</code>, <code>Text</code>, <code>CDATASection</code>, |
132 |
<code>Comment</code>, <code>DocumentType</code>, or <code>EntityReference</code> so |
<code>Comment</code>, <code>DocumentType</code>, nor <code>EntityReference</code>, so |
133 |
that <code>INVALID_STATE_ERR</code> MUST be thrown. |
that an <code>INVALID_STATE_ERR</code> exception MUST be thrown. |
134 |
The code will be invoked with an argument, which is the node |
The code will be invoked with an argument, which is the node |
135 |
whose type is invalid. |
whose type is invalid. |
136 |
This argument is optional; if missing, any such |
The argument <em>$onerror</em> is optional; if missing, any erroneous |
137 |
node is simply ignored.</p> |
node is simply ignored.</p> |
138 |
</dd> |
</dd> |
139 |
<dd> |
<dd> |
149 |
to improve performance.</p> |
to improve performance.</p> |
150 |
<p>A method that accepts a byte stream as an input.</p> |
<p>A method that accepts a byte stream as an input.</p> |
151 |
<p>Charset detection algorithm.</p> |
<p>Charset detection algorithm.</p> |
152 |
<p>Setting inner_html.</p> |
<p>Documentation for the setter of inner_html.</p> |
153 |
<p>And there are many ``TODO''s and ``ISSUE''s in the source code.</p> |
<p>And there are many ``TODO''s and ``ISSUE''s in the source code.</p> |
154 |
<p> |
<p> |
155 |
</p> |
</p> |