Skip to content

Commit

Permalink
Make sure that we don't use matchesSelector on XML Documents (same as…
Browse files Browse the repository at this point in the history
… with qSA). Fixes #7219.
  • Loading branch information
jeresig committed Oct 22, 2010
1 parent 4fc86d5 commit 6bc3042
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/selector.js
Expand Up @@ -36,7 +36,7 @@ test("element", function() {

if ( location.protocol != "file:" ) {
test("XML Document Selectors", function() {
expect(7);
expect(8);
stop();
jQuery.get("data/with_fries.xml", function(xml) {
equals( jQuery("foo_bar", xml).length, 1, "Element Selector with underscore" );
Expand All @@ -46,6 +46,7 @@ if ( location.protocol != "file:" ) {
equals( jQuery("[name=prop2]", xml).length, 1, "Attribute selector with name" );
equals( jQuery("#seite1", xml).length, 1, "Attribute selector with ID" );
equals( jQuery("component#seite1", xml).length, 1, "Attribute selector with ID" );
equals( jQuery("component", xml).filter("#seite1").length, 1, "Attribute selector filter with ID" );
start();
});
});
Expand Down

0 comments on commit 6bc3042

Please sign in to comment.