reference/tidy/tidynode/ishtml.xml
2b84fa46e30d9611e9b5d3af877a7e9ab5c7411a
...
...
@@ -3,26 +3,54 @@
3
3
<refentry xml:id="tidynode.ishtml" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>tidyNode::isHtml</refname>
6
-
<refpurpose>Checks if a node is part of a HTML document</refpurpose>
6
+
<refpurpose>Checks if a node is an element node</refpurpose>
7
7
</refnamediv>
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
-
<methodsynopsis>
11
-
<type>bool</type><methodname>tidyNode::isHtml</methodname>
10
+
<methodsynopsis role="tidyNode">
11
+
<modifier>public</modifier> <type>bool</type><methodname>tidyNode::isHtml</methodname>
12
12
<void/>
13
13
</methodsynopsis>
14
14
<para>
15
-
Tells if the node is part of HTML document.
15
+
Tells if the node is an element node, but not the root node of the document.
16
16
</para>
17
17
</refsect1>
18
18

19
+
<refsect1 role="parameters">
20
+
&reftitle.parameters;
21
+
&no.function.parameters;
22
+
</refsect1>
23
+
19
24
<refsect1 role="returnvalues">
20
25
&reftitle.returnvalues;
21
26
<para>
22
-
Returns &true; if the node is part of a HTML document, &false; otherwise.
27
+
Returns &true; if the node is an element node, but not the root node of the document, &false; otherwise.
23
28
</para>
24
29
</refsect1>
25
30

31
+
<refsect1 role="changelog">
32
+
&reftitle.changelog;
33
+
<informaltable>
34
+
<tgroup cols="2">
35
+
<thead>
36
+
<row>
37
+
<entry>&Version;</entry>
38
+
<entry>&Description;</entry>
39
+
</row>
40
+
</thead>
41
+
<tbody>
42
+
<row>
43
+
<entry>7.3.24, 7.4.12</entry>
44
+
<entry>
45
+
This function has been fixed to have reasonable behavior. Previously,
46
+
almost any node was reported as being an HTML node.
47
+
</entry>
48
+
</row>
49
+
</tbody>
50
+
</tgroup>
51
+
</informaltable>
52
+
</refsect1>
53
+

26
54
<refsect1 role="examples">
27
55
&reftitle.examples;
28
56
<para>
...
...
@@ -117,19 +145,10 @@ Hello WorldOutside HTML
117
145

118
146

119
147
# html node #3
120
-
<?php echo '<title>title</title>'; ?>
121
-

122
-
# html node #4
123
-
<#
124
-
/* JSTE code */
125
-
alert('Hello World');
126
-
#>
127
-

128
-
# html node #5
129
148
<title></title>
130
149

131
150

132
-
# html node #6
151
+
# html node #4
133
152
<body>
134
153
<?php
135
154
// PHP code
...
...
@@ -140,36 +159,12 @@ Hello WorldOutside HTML
140
159
%><!-- Comments -->
141
160
Hello WorldOutside HTML
142
161
</body>
143
-

144
-

145
-
# html node #7
146
-
<?php
147
-
// PHP code
148
-
echo 'hello world!';
149
-
?>
150
-

151
-
# html node #8
152
-
<%
153
-
/* ASP code */
154
-
response.write("Hello World!")
155
-
%>
156
-

157
-
# html node #9
158
-
<!-- Comments -->
159
-

160
-

161
-
# html node #10
162
-
Hello World
163
-

164
-
# html node #11
165
-
Outside HTML
166
162
]]>
167
163
</screen>
168
164
</example>
169
165
</para>
170
166
</refsect1>
171
167
</refentry>
172
-

173
168
<!-- Keep this comment at the end of the file
174
169
Local variables:
175
170
mode: sgml
176
171