Added support for class selectors and class attribute selectors on XML documents. Fixes jQuery bug #4167.
This commit is contained in:
parent
8533da939d
commit
048fc4555f
5 changed files with 22 additions and 12 deletions
|
@ -35,10 +35,12 @@ test("element", function() {
|
|||
|
||||
if ( location.protocol != "file:" ) {
|
||||
test("XML Document Selectors", function() {
|
||||
expect(5);
|
||||
expect(7);
|
||||
stop();
|
||||
jQuery.get("data/with_fries.xml", function(xml) {
|
||||
equals( jQuery("foo_bar", xml).length, 1, "Element Selector with underscore" );
|
||||
equals( jQuery(".component", xml).length, 1, "Class selector" );
|
||||
equals( jQuery("[class*=component]", xml).length, 1, "Attribute selector for class" );
|
||||
equals( jQuery("property[name=prop2]", xml).length, 1, "Attribute selector with name" );
|
||||
equals( jQuery("[name=prop2]", xml).length, 1, "Attribute selector with name" );
|
||||
equals( jQuery("#seite1", xml).length, 1, "Attribute selector with ID" );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue