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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by wakaba, Sun Nov 4 04:34:30 2007 UTC revision 1.7 by wakaba, Sun Nov 11 04:59:35 2007 UTC
# Line 122  from a string containing HTML document m Line 122  from a string containing HTML document m
122    my $doc = Whatpm::HTML->parse_string    my $doc = Whatpm::HTML->parse_string
123        ($s =&gt; Whatpm::NanoDOM::Document-&gt;new, $onerror);</pre>        ($s =&gt; Whatpm::NanoDOM::Document-&gt;new, $onerror);</pre>
124  </dd>  </dd>
 <p></p>  
 <dt><strong><a name="item_get_inner_html"><em>$s</em> = Whatpm::HTML-&gt;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>
# Line 190  to improve performance.</p> Line 165  to improve performance.</p>
165  <p>Whatpm Error Types  <p>Whatpm Error Types
166  &lt;http://suika.fam.cx/gate/2005/sw/Whatpm%20Error%20Types&gt;.</p>  &lt;http://suika.fam.cx/gate/2005/sw/Whatpm%20Error%20Types&gt;.</p>
167  <p>HTML5 &lt;http://whatwg.org/html5&gt;.</p>  <p>HTML5 &lt;http://whatwg.org/html5&gt;.</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>

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24