reference/dom/domelement/setattribute.xml
4f5e2b22575131fa5e9c3004b1c874e1acb06573
...
...
@@ -1,19 +1,19 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xml:id='domelement.setattribute' xmlns="http://docbook.org/ns/docbook">
3
+
<refentry xml:id="domelement.setattribute" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>DOMElement::setAttribute</refname>
6
-
<refpurpose>Adds new attribute</refpurpose>
6
+
<refpurpose>Adds new or modifies existing attribute</refpurpose>
7
7
</refnamediv>
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
-
<methodsynopsis>
11
-
<modifier>public</modifier> <type>DOMAttr</type><methodname>DOMElement::setAttribute</methodname>
12
-
<methodparam><type>string</type><parameter>name</parameter></methodparam>
10
+
<methodsynopsis role="DOMElement">
11
+
<modifier>public</modifier> <type class="union"><type>DOMAttr</type><type>bool</type></type><methodname>DOMElement::setAttribute</methodname>
12
+
<methodparam><type>string</type><parameter>qualifiedName</parameter></methodparam>
13
13
<methodparam><type>string</type><parameter>value</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
-
Sets an attribute with name <parameter>name</parameter> to the given
16
+
Sets an attribute with name <parameter>qualifiedName</parameter> to the given
17
17
value. If the attribute does not exist, it will be created.
18
18
</para>
19
19
</refsect1>
...
...
@@ -22,7 +22,7 @@
22
22
<para>
23
23
<variablelist>
24
24
<varlistentry>
25
-
<term><parameter>name</parameter></term>
25
+
<term><parameter>qualifiedName</parameter></term>
26
26
<listitem>
27
27
<para>
28
28
The name of the attribute.
...
...
@@ -43,7 +43,7 @@
43
43
<refsect1 role="returnvalues">
44
44
&reftitle.returnvalues;
45
45
<para>
46
-
The new <classname>DOMAttr</classname> or &false; if an error occurred.
46
+
The created or modified <classname>DOMAttr</classname> or &false; if an error occurred.
47
47
</para>
48
48
</refsect1>
49
49
<refsect1 role="errors">
...
...
@@ -90,7 +90,6 @@ $newnode->setAttribute("align", "left");
90
90
</para>
91
91
</refsect1>
92
92
</refentry>
93
-

94
93
<!-- Keep this comment at the end of the file
95
94
Local variables:
96
95
mode: sgml
97
96