reference/dom/domdocument/createelement.xml
4f5e2b22575131fa5e9c3004b1c874e1acb06573
...
...
@@ -7,10 +7,10 @@
7
7
</refnamediv>
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
-
<methodsynopsis>
11
-
<modifier>public</modifier> <type>DOMElement</type><methodname>DOMDocument::createElement</methodname>
12
-
<methodparam><type>string</type><parameter>name</parameter></methodparam>
13
-
<methodparam choice="opt"><type>string</type><parameter>value</parameter></methodparam>
10
+
<methodsynopsis role="DOMDocument">
11
+
<modifier>public</modifier> <type class="union"><type>DOMElement</type><type>false</type></type><methodname>DOMDocument::createElement</methodname>
12
+
<methodparam><type>string</type><parameter>localName</parameter></methodparam>
13
+
<methodparam choice="opt"><type>string</type><parameter>value</parameter><initializer>""</initializer></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
This function creates a new instance of class
...
...
@@ -22,7 +22,7 @@
22
22
<para>
23
23
<variablelist>
24
24
<varlistentry>
25
-
<term><parameter>name</parameter></term>
25
+
<term><parameter>localName</parameter></term>
26
26
<listitem>
27
27
<para>
28
28
The tag name of the element.
...
...
@@ -34,8 +34,7 @@
34
34
<listitem>
35
35
<para>
36
36
The value of the element. By default, an empty element will be created.
37
-
The value can also be set later with <link
38
-
linkend="domnode.props.nodevalue">DOMElement::$nodeValue</link>.
37
+
The value can also be set later with <link linkend="domnode.props.nodevalue">DOMElement::$nodeValue</link>.
39
38
</para>
40
39
<para>
41
40
The value is used verbatim except that the &lt; and &gt; entity
...
...
@@ -63,7 +62,7 @@
63
62
<term><constant>DOM_INVALID_CHARACTER_ERR</constant></term>
64
63
<listitem>
65
64
<para>
66
-
Raised if <parameter>name</parameter> contains an invalid character.
65
+
Raised if <parameter>localName</parameter> contains an invalid character.
67
66
</para>
68
67
</listitem>
69
68
</varlistentry>
...
...
@@ -151,7 +150,6 @@ Warning: DOMDocument::createElement(): unterminated entity reference
151
150
</para>
152
151
</refsect1>
153
152
</refentry>
154
-

155
153
<!-- Keep this comment at the end of the file
156
154
Local variables:
157
155
mode: sgml
158
156