summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/xml/Elem.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/library/scala/xml/Elem.scala b/src/library/scala/xml/Elem.scala
index a5f07fd78a..80050f0bee 100644
--- a/src/library/scala/xml/Elem.scala
+++ b/src/library/scala/xml/Elem.scala
@@ -53,15 +53,15 @@ object Elem {
override def hashCode(): Int =
Utility.hashCode(prefix, label, attributes.hashCode(), scope.hashCode(), child)
- /** Returns a new element with updated attributes.
- *
- * @param attrs ...
+ /** Returns a new element with updated attributes, resolving namespace uris from this element's scope.
+ * See MetaData.update for details.
+ * @param updates MetaData with new and updated attributes
* @return a new symbol with updated attributes
*/
- final def %(attrs: MetaData): Elem =
+ final def %(udpates: MetaData): Elem =
Elem(prefix,
label,
- attrs.append(attributes),
+ MetaData.update(attributes, scope, updates),
scope,
child:_*)