92 |
parse error makes that string being <code>warn</code>ed.</p> |
parse error makes that string being <code>warn</code>ed.</p> |
93 |
</dd> |
</dd> |
94 |
<dd> |
<dd> |
95 |
|
<p><strong>NOTE</strong>: To be a conforming user agent, the code MUST either |
96 |
|
abort the processing by throwing an exception at the first |
97 |
|
invocation or MUST continue the processing until the parser |
98 |
|
stops.</p> |
99 |
|
</dd> |
100 |
|
<dd> |
101 |
<p>The method returns the DOM <code>Document</code> object (i.e. the second argument).</p> |
<p>The method returns the DOM <code>Document</code> object (i.e. the second argument).</p> |
102 |
</dd> |
</dd> |
103 |
<dd> |
<dd> |
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 |
109 |
from a string containing HTML document can be coded as:</p> |
from a string containing HTML document might be coded as:</p> |
110 |
</dd> |
</dd> |
111 |
<dd> |
<dd> |
112 |
<pre> |
<pre> |
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 <code>$node</code> is not of <code>Element</code>, <code>Text</code>, <code>CDATASection</code>, |
of <em>$node</em> is not 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>, or <code>EntityReference</code> so |
133 |
that <code>INVALID_STATE_ERR</code> MUST be thrown. |
that <code>INVALID_STATE_ERR</code> 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 |
138 |
</dd> |
</dd> |
139 |
<dd> |
<dd> |
140 |
<p>The method returns a reference to the <code>inner_html</code> attribute |
<p>The method returns a reference to the <code>inner_html</code> attribute |
141 |
value, i.e. the HTML serialization of the <code>$node</code>.</p> |
value, i.e. the HTML serialization of the <em>$node</em>.</p> |
142 |
</dd> |
</dd> |
143 |
<p></p></dl> |
<p></p></dl> |
144 |
<p> |
<p> |
155 |
</p> |
</p> |
156 |
<hr /> |
<hr /> |
157 |
<h1><a name="see_also">SEE ALSO</a></h1> |
<h1><a name="see_also">SEE ALSO</a></h1> |
158 |
|
<p>Whatpm |
159 |
|
<http://suika.fam.cx/www/markup/html/whatpm/readme></p> |
160 |
<p>Web Applications 1.0 Working Draft (aka HTML5) |
<p>Web Applications 1.0 Working Draft (aka HTML5) |
161 |
<http://whatwg.org/html5>. (Revision 792, 1 May 2007)</p> |
<http://whatwg.org/html5>. (Revision 792, 1 May 2007)</p> |
162 |
<p><a href="../Whatpm/NanoDOM.html">the Whatpm::NanoDOM manpage</a></p> |
<p><a href="../Whatpm/NanoDOM.html">the Whatpm::NanoDOM manpage</a></p> |