summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library/scala/xml/PrefixedAttribute.scala2
-rw-r--r--src/library/scala/xml/UnprefixedAttribute.scala2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/xml/PrefixedAttribute.scala b/src/library/scala/xml/PrefixedAttribute.scala
index 13ed201634..7922999dfd 100644
--- a/src/library/scala/xml/PrefixedAttribute.scala
+++ b/src/library/scala/xml/PrefixedAttribute.scala
@@ -81,7 +81,7 @@ extends Attribute
sb.append(key)
sb.append('=')
val sb2 = new StringBuilder()
- for (c <- value) Utility.toXML(c, TopScope, sb2, true)
+ Utility.sequenceToXML(value, TopScope, sb2, true)
Utility.appendQuoted(sb2.toString(), sb)
}
diff --git a/src/library/scala/xml/UnprefixedAttribute.scala b/src/library/scala/xml/UnprefixedAttribute.scala
index 59d43d6856..f82b5698dd 100644
--- a/src/library/scala/xml/UnprefixedAttribute.scala
+++ b/src/library/scala/xml/UnprefixedAttribute.scala
@@ -78,7 +78,7 @@ extends Attribute
sb.append(key)
sb.append('=')
val sb2 = new StringBuilder()
- for (c <- value) Utility.toXML(c, TopScope, sb2, true)
+ Utility.sequenceToXML(value, TopScope, sb2, true)
Utility.appendQuoted(sb2.toString(), sb)
}