reference/dom/domdocument/createattributens.xml
c1349f9574ed77c268c6312a07466f06d59e5078
...
...
@@ -9,9 +9,9 @@
9
9
</refnamediv>
10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
-
<methodsynopsis>
13
-
<modifier>public</modifier> <type>DOMAttr</type><methodname>DOMDocument::createAttributeNS</methodname>
14
-
<methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam>
12
+
<methodsynopsis role="DOMDocument">
13
+
<modifier>public</modifier> <type class="union"><type>DOMAttr</type><type>false</type></type><methodname>DOMDocument::createAttributeNS</methodname>
14
+
<methodparam><type class="union"><type>string</type><type>null</type></type><parameter>namespace</parameter></methodparam>
15
15
<methodparam><type>string</type><parameter>qualifiedName</parameter></methodparam>
16
16
</methodsynopsis>
17
17
<para>
...
...
@@ -24,7 +24,7 @@
24
24
<para>
25
25
<variablelist>
26
26
<varlistentry>
27
-
<term><parameter>namespaceURI</parameter></term>
27
+
<term><parameter>namespace</parameter></term>
28
28
<listitem>
29
29
<para>
30
30
The URI of the namespace.
...
...
@@ -66,13 +66,44 @@
66
66
<para>
67
67
Raised if <parameter>qualifiedName</parameter> is a malformed qualified
68
68
name, or if <parameter>qualifiedName</parameter> has a prefix and
69
-
<parameter>namespaceURI</parameter> is &null;.
69
+
<parameter>namespace</parameter> is &null;.
70
70
</para>
71
71
</listitem>
72
72
</varlistentry>
73
73
</variablelist>
74
74
</para>
75
75
</refsect1>
76
+
<refsect1 role="changelog">
77
+
&reftitle.changelog;
78
+
<informaltable>
79
+
<tgroup cols="2">
80
+
<thead>
81
+
<row>
82
+
<entry>&Version;</entry>
83
+
<entry>&Description;</entry>
84
+
</row>
85
+
</thead>
86
+
<tbody>
87
+
<row>
88
+
<entry>8.3.0</entry>
89
+
<entry>
90
+
Calling this method without specifying a prefix will now choose a prefix instead of assuming the default namespace.
91
+
Previously this would create an attribute without a prefix and incorrectly apply the namespace
92
+
to the owner element because default namespaces don't apply on attributes.
93
+
</entry>
94
+
</row>
95
+
<row>
96
+
<entry>8.3.0</entry>
97
+
<entry>
98
+
Calling this method using a prefix that was already declared on the owner element with a different namespace URI
99
+
will now change the new prefix to avoid creating namespace conflicts. This aligns the behaviour with the DOM specification.
100
+
Previously this threw a <classname>DOMException</classname> with code <constant>DOM_NAMESPACE_ERR</constant>.
101
+
</entry>
102
+
</row>
103
+
</tbody>
104
+
</tgroup>
105
+
</informaltable>
106
+
</refsect1>
76
107
<refsect1 role="seealso">
77
108
&reftitle.seealso;
78
109
<para>
...
...
@@ -91,7 +122,6 @@
91
122
</para>
92
123
</refsect1>
93
124
</refentry>
94
-

95
125
<!-- Keep this comment at the end of the file
96
126
Local variables:
97
127
mode: sgml
98
128