summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@epfl.ch>2012-05-30 02:28:29 -0700
committerAdriaan Moors <adriaan.moors@epfl.ch>2012-05-30 02:28:29 -0700
commit8d38079ab457e77b3ba57076f3766a158c1eb030 (patch)
treed17136db2be297d3fe7fde3c9e8332289aed48d3 /src
parentfa469eead14a30b94ce6c149000377799924feb2 (diff)
parent32fde82fb58df3686af50c272d113f31f07a60d9 (diff)
downloadscala-8d38079ab457e77b3ba57076f3766a158c1eb030.tar.gz
scala-8d38079ab457e77b3ba57076f3766a158c1eb030.tar.bz2
scala-8d38079ab457e77b3ba57076f3766a158c1eb030.zip
Merge pull request #638 from lrytz/wip/t5843
fix t5843
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/xml/Attribute.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/xml/Attribute.scala b/src/library/scala/xml/Attribute.scala
index 6b68e97412..4c50b15e53 100644
--- a/src/library/scala/xml/Attribute.scala
+++ b/src/library/scala/xml/Attribute.scala
@@ -61,8 +61,8 @@ abstract trait Attribute extends MetaData {
else copy(next remove key)
def remove(namespace: String, scope: NamespaceBinding, key: String) =
- if (isPrefixed && this.key == key && (scope getURI pre) == namespace) next
- else next.remove(namespace, scope, key)
+ if (this.key == key && (scope getURI pre) == namespace) next
+ else copy(next.remove(namespace, scope, key))
def isPrefixed: Boolean = pre != null