summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sources/scala/xml/parsing/MarkupParser.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scala/xml/parsing/MarkupParser.scala b/sources/scala/xml/parsing/MarkupParser.scala
index 425fa6665e..350bb3e9bd 100644
--- a/sources/scala/xml/parsing/MarkupParser.scala
+++ b/sources/scala/xml/parsing/MarkupParser.scala
@@ -140,7 +140,7 @@ abstract class MarkupParser[MarkupType] {
val uri = handle.namespace(pref);
val qkey = Pair(uri, key);
// well-formedness constraint: unique attribute names
- if (aMap.contains(qkey))
+ if (aMap1.contains(qkey))
reportSyntaxError( "attribute " + key + " may only be defined once" );
aMap1.update(qkey, handle.attribute(pos, uri, key, value));
}