summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBurak Emir <emir@epfl.ch>2008-02-16 18:52:42 +0000
committerBurak Emir <emir@epfl.ch>2008-02-16 18:52:42 +0000
commit42bd5783200e8e2594cc8322bd7d4d502fd05613 (patch)
treefad3567007c64dd757c84e5d81011a0c9420c42e /src
parent9289284717673b7394a920daf8420d214afcff8f (diff)
downloadscala-42bd5783200e8e2594cc8322bd7d4d502fd05613.tar.gz
scala-42bd5783200e8e2594cc8322bd7d4d502fd05613.tar.bz2
scala-42bd5783200e8e2594cc8322bd7d4d502fd05613.zip
fix semantics of method %
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:_*)