reference/dom/domdocument/loadhtmlfile.xml
c22cca7824d96f39642b69111b31869878d195d7
...
...
@@ -9,7 +9,7 @@
9
9
</refnamediv>
10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
-
<methodsynopsis>
12
+
<methodsynopsis role="DOMDocument">
13
13
<modifier>public</modifier> <type>bool</type><methodname>DOMDocument::loadHTMLFile</methodname>
14
14
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
15
15
<methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>0</initializer></methodparam>
...
...
@@ -17,8 +17,9 @@
17
17
<para>
18
18
The function parses the HTML document in the file named
19
19
<parameter>filename</parameter>. Unlike loading XML, HTML does not have
20
-
to be well-formed to load.
20
+
to be well-formed to load.
21
21
</para>
22
+
&dom.domdocument.html5;
22
23
</refsect1>
23
24
<refsect1 role="parameters">
24
25
&reftitle.parameters;
...
...
@@ -35,11 +36,7 @@
35
36
<varlistentry>
36
37
<term><parameter>options</parameter></term>
37
38
<listitem>
38
-
<para>
39
-
Since PHP 5.4.0 and Libxml 2.6.0, you may also use the
40
-
<parameter>options</parameter> parameter to specify <link
41
-
linkend="libxml.constants">additional Libxml parameters</link>.
42
-
</para>
39
+
&dom.parameter.options;
43
40
</listitem>
44
41
</varlistentry>
45
42
</variablelist>
...
...
@@ -48,8 +45,7 @@
48
45
<refsect1 role="returnvalues">
49
46
&reftitle.returnvalues;
50
47
<para>
51
-
&return.success; If called statically, returns a
52
-
<classname>DOMDocument</classname>&return.falseforfailure;.
48
+
&return.success;
53
49
</para>
54
50
</refsect1>
55
51
<refsect1 role="errors">
...
...
@@ -57,13 +53,42 @@
57
53
<para>
58
54
If an empty string is passed as the <parameter>filename</parameter>
59
55
or an empty file is named, a warning will be generated. This warning
60
-
is not generated by libxml and cannot be handled using <link
61
-
linkend="function.libxml-use-internal-errors">libxml's error handling
56
+
is not generated by libxml and cannot be handled using <link linkend="function.libxml-use-internal-errors">libxml's error handling
62
57
functions</link>.
63
58
</para>
64
-
&dom.allowstatic;
65
59
&dom.malformederror;
66
60
</refsect1>
61
+

62
+
<refsect1 role="changelog">
63
+
&reftitle.changelog;
64
+
<informaltable>
65
+
<tgroup cols="2">
66
+
<thead>
67
+
<row>
68
+
<entry>&Version;</entry>
69
+
<entry>&Description;</entry>
70
+
</row>
71
+
</thead>
72
+
<tbody>
73
+
<row>
74
+
<entry>8.3.0</entry>
75
+
<entry>
76
+
This function now has a tentative <type>bool</type> return type.
77
+
</entry>
78
+
</row>
79
+
<row>
80
+
<entry>8.0.0</entry>
81
+
<entry>
82
+
Calling this function statically will
83
+
now throw an <classname>Error</classname>.
84
+
Previously, an <constant>E_DEPRECATED</constant> was raised.
85
+
</entry>
86
+
</row>
87
+
</tbody>
88
+
</tgroup>
89
+
</informaltable>
90
+
</refsect1>
91
+

67
92
<refsect1 role="examples">
68
93
&reftitle.examples;
69
94
<para>
...
...
@@ -82,30 +107,6 @@ echo $doc->saveHTML();
82
107
</para>
83
108
</refsect1>
84
109

85
-
<refsect1 role="changelog">
86
-
&reftitle.changelog;
87
-
<para>
88
-
<informaltable>
89
-
<tgroup cols="2">
90
-
<thead>
91
-
<row>
92
-
<entry>&Version;</entry>
93
-
<entry>&Description;</entry>
94
-
</row>
95
-
</thead>
96
-
<tbody>
97
-
<row>
98
-
<entry>5.4.0</entry>
99
-
<entry>
100
-
Added <parameter>options</parameter> parameter.
101
-
</entry>
102
-
</row>
103
-
</tbody>
104
-
</tgroup>
105
-
</informaltable>
106
-
</para>
107
-
</refsect1>
108
-
109
110
<refsect1 role="seealso">
110
111
&reftitle.seealso;
111
112
<para>
...
...
@@ -117,7 +118,6 @@ echo $doc->saveHTML();
117
118
</para>
118
119
</refsect1>
119
120
</refentry>
120
-

121
121
<!-- Keep this comment at the end of the file
122
122
Local variables:
123
123
mode: sgml
124
124