summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorBurak Emir <emir@epfl.ch>2006-03-31 09:45:34 +0000
committerBurak Emir <emir@epfl.ch>2006-03-31 09:45:34 +0000
commit8d86347882c48e662edacdae9cc4805276303458 (patch)
treee73a19172f40faa832ec740657426da026fac36b /src/library
parente9b3fa37013cfc59c9e442d0c926f6d2e4959edf (diff)
downloadscala-8d86347882c48e662edacdae9cc4805276303458.tar.gz
scala-8d86347882c48e662edacdae9cc4805276303458.tar.bz2
scala-8d86347882c48e662edacdae9cc4805276303458.zip
more like spec now
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/xml/NodeSeq.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/library/scala/xml/NodeSeq.scala b/src/library/scala/xml/NodeSeq.scala
index 45d557b3fc..cc9cfae5e6 100644
--- a/src/library/scala/xml/NodeSeq.scala
+++ b/src/library/scala/xml/NodeSeq.scala
@@ -70,16 +70,19 @@ abstract class NodeSeq extends Seq[Node] {
def \\ ( that:String ): NodeSeq = that match {
case "_" => for( val x <- this;
- val y <- x.descendant_or_self: NodeSeq )
+ val y <- x.descendant_or_self: NodeSeq;
+ y.typeTag$ != -1 )
yield { y }
case _ if that.charAt(0) == '@' =>
val attrib = that.substring(1);
(for(val x <- this;
val y <- x.descendant_or_self: NodeSeq;
+ y.typeTag$ != -1;
val z <- y \ that)
yield { z }):NodeSeq
case _ => for( val x <- this;
val y <- x.descendant_or_self: NodeSeq;
+ y.typeTag$ != -1;
y.label == that)
yield { y }
}