diff options
author | Burak Emir <emir@epfl.ch> | 2008-03-05 20:07:49 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2008-03-05 20:07:49 +0000 |
commit | 445cb840b937ee242e039b92ac6389d0e92f5739 (patch) | |
tree | f6d10b5a77bc294f889b85f263e00ed975b463dd /src | |
parent | b41231402d1fe68b19f2f44b9065f6bc95c4d794 (diff) | |
download | scala-445cb840b937ee242e039b92ac6389d0e92f5739.tar.gz scala-445cb840b937ee242e039b92ac6389d0e92f5739.tar.bz2 scala-445cb840b937ee242e039b92ac6389d0e92f5739.zip |
fixed double escaping issue
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/xml/PrefixedAttribute.scala | 4 | ||||
-rw-r--r-- | src/library/scala/xml/UnprefixedAttribute.scala | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/library/scala/xml/PrefixedAttribute.scala b/src/library/scala/xml/PrefixedAttribute.scala index 5b98e2ff36..0ee62b9cd7 100644 --- a/src/library/scala/xml/PrefixedAttribute.scala +++ b/src/library/scala/xml/PrefixedAttribute.scala @@ -26,9 +26,9 @@ class PrefixedAttribute(val pre: String, if(value eq null) throw new UnsupportedOperationException("value is null") - /** same as this(key, Text(value), next) */ + /** same as this(key, Utility.parseAttributeValue(value), next) */ def this(pre: String, key: String, value: String, next: MetaData) = - this(pre, key, Text(value), next) + this(pre, key, Utility.parseAttributeValue(value), next) /* // the problem here is the fact that we cannot remove the proper attribute from diff --git a/src/library/scala/xml/UnprefixedAttribute.scala b/src/library/scala/xml/UnprefixedAttribute.scala index be0f82129f..adaca90d97 100644 --- a/src/library/scala/xml/UnprefixedAttribute.scala +++ b/src/library/scala/xml/UnprefixedAttribute.scala @@ -19,11 +19,11 @@ class UnprefixedAttribute(val key: String, val value: Seq[Node], next1: MetaData val next = if (value ne null) next1 else next1.remove(key) - /** same as this(key, Text(value), next) */ + /** same as this(key, Utility.parseAttributeValue(value), next) */ def this(key: String, value: String, next: MetaData) = - this(key, if (value ne null) Text(value) else {val z:NodeSeq=null;z}, next) + this(key, if (value ne null) Utility.parseAttributeValue(value) else {val z:NodeSeq=null;z}, next) - /** same as this(key, Text(value.get), next), or no attribute if value is None */ + /** same as this(key, value.get, next), or no attribute if value is None */ def this(key: String, value: Option[Seq[Node]], next: MetaData) = this(key, if (!value.isEmpty) value.get else {val z:NodeSeq=null;z}, next) |