diff options
author | Burak Emir <emir@epfl.ch> | 2006-03-31 09:45:34 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2006-03-31 09:45:34 +0000 |
commit | 8d86347882c48e662edacdae9cc4805276303458 (patch) | |
tree | e73a19172f40faa832ec740657426da026fac36b /src/library | |
parent | e9b3fa37013cfc59c9e442d0c926f6d2e4959edf (diff) | |
download | scala-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.scala | 5 |
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 } } |