Since I seem to be doing the right thing based on the responses given to a previous thread, I want to just verify this thoroughly with you folks before I submit this as a bug report.
POSSIBLE BUG: "class" fails attribute selection TO REPRODUCE: Given the following xml file: <myxml> <span other="myvalue">Some content</span> <span class="myvalue">More content</span> </myxml> Load this file using $.ajax() into the variable "x" to hold the xml. The query $('span', x).length returns 2 as expected. The query $('span[other=myvalue]', x).length returns 1 as expected. The query $('span:eq(1)',x).attr('class') returns "myvalue" as expected HERE'S THE POSSIBLE BUG: The query $('span[class=myvalue]', x).length returns 0 when it should return 1 as above. The query with extra quotes, as in $('span[class="myvalue"]', x) also fails.