122 |
my $doc = Whatpm::HTML->parse_string |
my $doc = Whatpm::HTML->parse_string |
123 |
($s => Whatpm::NanoDOM::Document->new, $onerror);</pre> |
($s => Whatpm::NanoDOM::Document->new, $onerror);</pre> |
124 |
</dd> |
</dd> |
|
<p></p> |
|
|
<dt><strong><a name="item_get_inner_html"><em>$s</em> = Whatpm::HTML->get_inner_html (<em>$node</em>[, <em>$onerror</em>]);</a></strong><br /> |
|
|
</dt> |
|
|
<dd> |
|
|
Return the HTML serialization of a DOM node <em>$node</em>. |
|
|
</dd> |
|
|
<dd> |
|
|
<p>The first argument, <em>$node</em>, MUST be a DOM <code>Document</code>, |
|
|
<code>Element</code>, or <code>DocumentFragment</code> node.</p> |
|
|
</dd> |
|
|
<dd> |
|
|
<p>The second argument, <em>$onerror</em>, MUST be a reference to the |
|
|
error handling code. This code will be invoked if a descendant |
|
|
of <em>$node</em> is neither of <code>Element</code>, <code>Text</code>, <code>CDATASection</code>, |
|
|
<code>Comment</code>, <code>DocumentType</code>, nor <code>EntityReference</code>, so |
|
|
that an <code>INVALID_STATE_ERR</code> exception MUST be thrown. |
|
|
The code will be invoked with an argument, which is the node |
|
|
whose type is invalid. |
|
|
The argument <em>$onerror</em> is optional; if missing, any erroneous |
|
|
node is simply ignored.</p> |
|
|
</dd> |
|
|
<dd> |
|
|
<p>The method returns a reference to the <code>inner_html</code> attribute |
|
|
value, i.e. the HTML serialization of the <em>$node</em>.</p> |
|
|
</dd> |
|
125 |
<p></p></dl> |
<p></p></dl> |
126 |
<p> |
<p> |
127 |
</p> |
</p> |
165 |
<p>Whatpm Error Types |
<p>Whatpm Error Types |
166 |
<http://suika.fam.cx/gate/2005/sw/Whatpm%20Error%20Types>.</p> |
<http://suika.fam.cx/gate/2005/sw/Whatpm%20Error%20Types>.</p> |
167 |
<p>HTML5 <http://whatwg.org/html5>.</p> |
<p>HTML5 <http://whatwg.org/html5>.</p> |
168 |
|
<p><a href="../Whatpm/HTML/Serializer.html">the Whatpm::HTML::Serializer manpage</a>.</p> |
169 |
<p><a href="../Whatpm/NanoDOM.html">the Whatpm::NanoDOM manpage</a>.</p> |
<p><a href="../Whatpm/NanoDOM.html">the Whatpm::NanoDOM manpage</a>.</p> |
170 |
<p><a href="../Whatpm/ContentChecker/HTML.html">the Whatpm::ContentChecker::HTML manpage</a>.</p> |
<p><a href="../Whatpm/ContentChecker/HTML.html">the Whatpm::ContentChecker::HTML manpage</a>.</p> |
171 |
<p> |
<p> |