reference/dom/domdocument/getelementbyid.xml
4f5e2b22575131fa5e9c3004b1c874e1acb06573
...
...
@@ -7,23 +7,22 @@
7
7
</refnamediv>
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
-
<methodsynopsis>
11
-
<modifier>public</modifier> <type>DOMElement</type><methodname>DOMDocument::getElementById</methodname>
10
+
<methodsynopsis role="DOMDocument">
11
+
<modifier>public</modifier> <type class="union"><type>DOMElement</type><type>null</type></type><methodname>DOMDocument::getElementById</methodname>
12
12
<methodparam><type>string</type><parameter>elementId</parameter></methodparam>
13
13
</methodsynopsis>
14
14
<para>
15
15
This function is similar to
16
-
<xref linkend="domdocument.getelementsbytagname" /> but
16
+
<xref linkend="domdocument.getelementsbytagname"/> but
17
17
searches for an element with a given id.
18
18
</para>
19
19
<para>
20
20
For this function to work, you will need either to set some ID attributes
21
-
with <xref linkend="domelement.setidattribute" />
21
+
with <xref linkend="domelement.setidattribute"/>
22
22
or a DTD which defines an attribute to be of type ID.
23
23
In the later case, you will need to validate your document with
24
-
<xref linkend="domdocument.validate" />
25
-
or <link
26
-
linkend="domdocument.props.validateonparse">DOMDocument::$validateOnParse</link> before using this function.
24
+
<xref linkend="domdocument.validate"/>
25
+
or <link linkend="domdocument.props.validateonparse">DOMDocument::$validateOnParse</link> before using this function.
27
26
</para>
28
27
</refsect1>
29
28
<refsect1 role="parameters">
...
...
@@ -85,7 +84,6 @@ The element whose id is 'php-basics' is: book
85
84
</para>
86
85
</refsect1>
87
86
</refentry>
88
-

89
87
<!-- Keep this comment at the end of the file
90
88
Local variables:
91
89
mode: sgml
92
90